ec370c1edb0a7657824e518499c72ebcc8b6c519,app/tests/evaluation_tests/test_utils.py,,assert_ranks,#,130
Before Change
// Execute calculate_ranks manually
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: ilastik/ilastik
Commit Name: 8861dfa21d1cfd487b7a6eb7508885f084f58e6c
Time: 2019-07-10
Author: tomaz.vieira@embl.de
File Name: tests/widgets/test_datasetInfoEditorWidget.py
Class Name:
Method Name: create_and_modify_widget
Project Name: rasbt/mlxtend
Commit Name: 94f6b7149c3f833e91ba8e3020c0cdc619346b31
Time: 2017-09-11
Author: mail@sebastianraschka.com
File Name: mlxtend/frequent_patterns/tests/test_association_rules.py
Class Name:
Method Name: test_empty_result