def test_open_views(client, ChallengeSet): team = TeamFactory(challenge=ChallengeSet.challenge, owner=ChallengeSet.participant) validate_open_view( viewname='teams:detail', reverse_kwargs={'pk': team.pk}, challenge_set=ChallengeSet, client=client, )
def test_open_views(client, ChallengeSet): team = TeamFactory( challenge=ChallengeSet.challenge, owner=ChallengeSet.participant ) validate_open_view( viewname="teams:detail", reverse_kwargs={"pk": team.pk}, challenge_set=ChallengeSet, client=client, )
def test_open_views(client, challenge_set): team = TeamFactory( challenge=challenge_set.challenge, owner=challenge_set.participant ) validate_open_view( viewname="teams:detail", reverse_kwargs={"pk": team.pk}, challenge_set=challenge_set, client=client, )
def test_evaluation_detail(client, eval_challenge_set): submission = SubmissionFactory( challenge=eval_challenge_set.challenge_set.challenge, creator=eval_challenge_set.challenge_set.participant, ) e = EvaluationFactory(submission=submission) validate_open_view( viewname="evaluation:detail", challenge_set=eval_challenge_set.challenge_set, reverse_kwargs={"pk": e.pk}, client=client, )
def test_result_detail(client, EvalChallengeSet): submission = SubmissionFactory( challenge=EvalChallengeSet.ChallengeSet.challenge, creator=EvalChallengeSet.ChallengeSet.participant, ) job = JobFactory(submission=submission) result = ResultFactory(job=job) validate_open_view( viewname="evaluation:result-detail", challenge_set=EvalChallengeSet.ChallengeSet, reverse_kwargs={"pk": result.pk}, client=client, )
def test_result_list(client, EvalChallengeSet): validate_open_view( viewname="evaluation:result-list", challenge_set=EvalChallengeSet.ChallengeSet, client=client, )
def test_leaderboard(client, eval_challenge_set): validate_open_view( viewname="evaluation:leaderboard", challenge_set=eval_challenge_set.challenge_set, client=client, )