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,
    )
Ejemplo n.º 2
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,
    )
Ejemplo n.º 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,
    )
Ejemplo n.º 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,
    )
Ejemplo n.º 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,
    )
Ejemplo n.º 6
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,
    )
Ejemplo n.º 7
0
def test_result_list(client, EvalChallengeSet):
    validate_open_view(
        viewname="evaluation:result-list",
        challenge_set=EvalChallengeSet.ChallengeSet,
        client=client,
    )
Ejemplo n.º 8
0
def test_leaderboard(client, eval_challenge_set):
    validate_open_view(
        viewname="evaluation:leaderboard",
        challenge_set=eval_challenge_set.challenge_set,
        client=client,
    )
Ejemplo n.º 9
0
def test_result_list(client, EvalChallengeSet):
    validate_open_view(
        viewname="evaluation:result-list",
        challenge_set=EvalChallengeSet.ChallengeSet,
        client=client,
    )