97f021ba2d2671ba1493d09597dd2b62a4b37ac5,app/tests/datasets_tests/test_views.py,,test_unique_dataset_phase,#Any#,126
Before Change
assert "already exists" in response.rendered_content
// But a test dataset should be ok
response = client.post(url, data={"phase" : ImageSet.TESTING})
assert response.status_code == 302
// And a training dataset in another challenge should be fine
After Change
with pytest.raises(ValidationError):
ImageSet.objects.create(challenge=challenge, phase=ImageSet.TRAINING)
with pytest.raises(ValidationError):
ImageSet.objects.create(challenge=challenge, phase=ImageSet.TESTING)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: comic/grand-challenge.org
Commit Name: 97f021ba2d2671ba1493d09597dd2b62a4b37ac5
Time: 2018-09-05
Author: jamesmeakin@gmail.com
File Name: app/tests/datasets_tests/test_views.py
Class Name:
Method Name: test_unique_dataset_phase
Project Name: pantsbuild/pants
Commit Name: 015a1e6ed5bfa9256c784d097277d2a54cadf511
Time: 2020-08-06
Author: stuhood@gmail.com
File Name: src/python/pants/engine/target_test.py
Class Name:
Method Name: test_generate_subtarget
Project Name: scipy/scipy
Commit Name: 0aca11344ba5326b068e8c70580f6d2d913141f9
Time: 2018-08-12
Author: larson.eric.d@gmail.com
File Name: scipy/interpolate/tests/test_interpolate.py
Class Name: TestAkima1DInterpolator
Method Name: test_extend