further coverage sutff
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user