ec370c1edb0a7657824e518499c72ebcc8b6c519,app/tests/evaluation_tests/test_utils.py,,assert_ranks,#,130

Before Change


    calculate_ranks(challenge_pk=challenge.pk)

    for q, exp in zip(queryset, expected_ranks):
        r = Result.objects.get(pk=q.pk)
        assert r.rank == exp

After Change


    for r in queryset:
        r.refresh_from_db()

    assert [r.rank for r in queryset] == expected_ranks
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: ec370c1edb0a7657824e518499c72ebcc8b6c519
Time: 2018-11-15
Author: jamesmeakin@gmail.com
File Name: app/tests/evaluation_tests/test_utils.py
Class Name:
Method Name: assert_ranks


Project Name: dataiku/dataiku-contrib
Commit Name: 585a21cec98c44dc7318eb6b5f9665a4dce7a3c8
Time: 2019-03-14
Author: duphan@Du-MacBook.local
File Name: deeplearning-image-gpu/python-lib/api_designer_utils.py
Class Name:
Method Name: get_params


Project Name: explosion/thinc
Commit Name: c5a6203229dd64efca38b20e827ce4d6e638918e
Time: 2019-10-19
Author: honnibal+gh@gmail.com
File Name: thinc/tests/unit/test_ops.py
Class Name:
Method Name: test_seq2col_window_one