Private
Public Access
1
0

coverage exclusion statements

This commit is contained in:
Sander Roosendaal
2021-06-23 16:10:58 +02:00
parent 2d8e054855
commit adede66906
3 changed files with 5 additions and 5 deletions

View File

@@ -700,7 +700,7 @@ def createc2workoutdata(w):
if workouttype in otwtypes:
workouttype = 'water'
if w.timezone == 'tzutc()':
if w.timezone == 'tzutc()': # pragma: no cover
w.timezone = 'UTC'
w.save()

View File

@@ -1844,7 +1844,7 @@ def get_startdate_time_zone(r,row,startdatetime=None):
if startdatetime is not None and startdatetime != '':
try:
timezone_str = pendulum.instance(startdatetime).timezone.name
except ValueError:
except ValueError: # pragma: no cover
timezone_str = 'Ect/GMT'
elif startdatetime == '':
startdatetime = row.rowdatetime
@@ -1853,7 +1853,7 @@ def get_startdate_time_zone(r,row,startdatetime=None):
try:
tz = startdatetime.tzinfo
except AttributeError:
except AttributeError: # pragma: no cover
startdatetime = row.rowdatetime
partofday = getpartofday(row,r)
@@ -1899,7 +1899,7 @@ def get_startdate_time_zone(r,row,startdatetime=None):
starttime = startdatetime.strftime('%H:%M:%S')
if timezone_str == 'tzutc()':
timezone_str = 'UTC'
timezone_str = 'UTC' # pragma: no cover
return startdatetime,startdate,starttime,timezone_str,partofday

View File

@@ -547,7 +547,7 @@ def get_strava_stream(r,metric,stravaid,series_type='time',fetchresolution='high
return np.array(data['data'])
except TypeError: # pragma: no cover
return None
except:
except: # pragma: no cover
return None
return None # pragma: no cover