Private
Public Access
1
0

further coverage sutff

This commit is contained in:
Sander Roosendaal
2021-04-12 22:09:28 +02:00
parent 60c657f639
commit b9e573ce23

View File

@@ -720,7 +720,7 @@ def addmanual_view(request,raceid=0):
race = race
).exclude(userid=r.id)
for otherrecord in otherrecords:
try:
try: # pragma: no cover
otheruser = Rower.objects.get(id=otherrecord.userid)
othername = otheruser.user.first_name+' '+otheruser.user.last_name
registeredname = r.user.first_name+' '+r.user.last_name
@@ -733,7 +733,7 @@ def addmanual_view(request,raceid=0):
race.name,
race.id
)
except Rower.DoesNotExist:
except Rower.DoesNotExist: # pragma: no cover
pass
url = reverse('virtualevent_view',kwargs = {'id':race.id})
@@ -992,7 +992,7 @@ def video_selectworkout(request,userid=0):
).exclude(boattype__in=negtypes)
if rankingonly:
if rankingonly: # pragma : no cover
workouts = workouts.exclude(rankingpiece=False)
startdatestring = startdate.strftime('%Y-%m-%d')
@@ -1344,7 +1344,7 @@ def team_comparison_select(request,
startdatetime__gte=startdate,
startdatetime__lte=enddate,
workouttype__in=modalities).order_by("-date", "-starttime").exclude(boattype__in=negtypes)
elif theteam and theteam.viewing == 'coachonly':
elif theteam and theteam.viewing == 'coachonly': # pragma: no cover
workouts = Workout.objects.filter(team=theteam,user=r,
startdatetime__gte=startdate,
startdatetime__lte=enddate,