fc228d4dca5ca59bd88bc2ecb005fc0f27a6c45b,app/tests/evaluation_tests/test_utils.py,,test_results_display,#,42

Before Change


    with mute_signals(post_save):
        user1 = UserFactory()
        user2 = UserFactory()
        queryset = (
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.1},
                job__submission__creator=user1,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.2},
                job__submission__creator=user1,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.3},
                job__submission__creator=user1,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.4},

After Change


    challenge.evaluation_config.save()

    with mute_signals(post_save):
        user1 = UserFactory()
        user2 = UserFactory()
        queryset = (
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.6},
                job__submission__creator=user1,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.4},
                job__submission__creator=user1,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.2},
                job__submission__creator=user1,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.1},
                job__submission__creator=user2,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.5},
                job__submission__creator=user2,
            ),
            ResultFactory(
                challenge=challenge,
                metrics={"a": 0.3},
                job__submission__creator=user2,
            ),
        )

    expected_ranks = [1, 3, 5, 6, 2, 4]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: comic/grand-challenge.org
Commit Name: fc228d4dca5ca59bd88bc2ecb005fc0f27a6c45b
Time: 2018-10-26
Author: jamesmeakin@gmail.com
File Name: app/tests/evaluation_tests/test_utils.py
Class Name:
Method Name: test_results_display


Project Name: comic/grand-challenge.org
Commit Name: fc228d4dca5ca59bd88bc2ecb005fc0f27a6c45b
Time: 2018-10-26
Author: jamesmeakin@gmail.com
File Name: app/tests/evaluation_tests/test_utils.py
Class Name:
Method Name: test_results_display