Private
Public Access
1
0

some coverage fixes

This commit is contained in:
Sander Roosendaal
2021-05-03 15:53:24 +02:00
parent 5381912472
commit 6f615c4ccc
2 changed files with 2 additions and 2 deletions

View File

@@ -3772,7 +3772,7 @@ def auto_delete_image_on_delete(sender,instance, **kwargs):
if others.count() == 0:
os.remove(instance.filename)
else:
print("couldn't find the file "+instance.filename)
pass

View File

@@ -610,7 +610,7 @@ def step_to_time_dist(step,avgspeed = 3.2,ftp=200,ftspm=25,ftv=3.7):
valuelow = step.get('targetValueLow',0)
valuehigh = step.get('targetValueHigh',0)
velomid = 0.
if value != 0:
if value != 0: # pragma: no cover
distance = seconds*value/1000.
velomid = value/1000.
elif valuelow != 0 and valuehigh != 0: # pragma: no cover