コード例 #1
0
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,
    )
コード例 #2
0
ファイル: test_views.py プロジェクト: comic/comic-django
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,
    )
コード例 #3
0
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,
    )
コード例 #4
0
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,
    )
コード例 #5
0
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,
    )
コード例 #6
0
ファイル: test_views.py プロジェクト: comic/comic-django
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,
    )
コード例 #7
0
def test_result_list(client, EvalChallengeSet):
    validate_open_view(
        viewname="evaluation:result-list",
        challenge_set=EvalChallengeSet.ChallengeSet,
        client=client,
    )
コード例 #8
0
def test_leaderboard(client, eval_challenge_set):
    validate_open_view(
        viewname="evaluation:leaderboard",
        challenge_set=eval_challenge_set.challenge_set,
        client=client,
    )
コード例 #9
0
ファイル: test_views.py プロジェクト: comic/comic-django
def test_result_list(client, EvalChallengeSet):
    validate_open_view(
        viewname="evaluation:result-list",
        challenge_set=EvalChallengeSet.ChallengeSet,
        client=client,
    )