869d420ded61dce0ef4fd036cebf8f567915f69a,app/tests/retina_api_tests/test_viewsets.py,TestSinglePolygonAnnotationViewSet,test_partial_update_view,#TestSinglePolygonAnnotationViewSet#Any#Any#Any#,519
Before Change
if user_type in ("retina_grader", "retina_admin"):
response.data["annotation_set"] = str(
response.data["annotation_set"]
)
assert response.data == model_serialized
def test_destroy_view(self, TwoRetinaPolygonAnnotationSets, rf, user_type):
After Change
annotation_set = SinglePolygonAnnotationFactory()
model_serialized["value"] = annotation_set.value
partial_model = copy.deepcopy(model_serialized)
del partial_model["annotation_set"]
del partial_model["id"]
model_json = json.dumps(partial_model)
response = view_test(
"partial_update",
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: comic/grand-challenge.org
Commit Name: 869d420ded61dce0ef4fd036cebf8f567915f69a
Time: 2019-04-08
Author: harm.van.zeeland@gmail.com
File Name: app/tests/retina_api_tests/test_viewsets.py
Class Name: TestSinglePolygonAnnotationViewSet
Method Name: test_partial_update_view
Project Name: comic/grand-challenge.org
Commit Name: 869d420ded61dce0ef4fd036cebf8f567915f69a
Time: 2019-04-08
Author: harm.van.zeeland@gmail.com
File Name: app/tests/retina_api_tests/test_viewsets.py
Class Name: TestSinglePolygonAnnotationViewSet
Method Name: test_partial_update_view
Project Name: HyperGAN/HyperGAN
Commit Name: fe56573f318578b6359d06d0454af6992f344c20
Time: 2020-03-02
Author: mikkel@255bits.com
File Name: hypergan/trainers/simultaneous_trainer.py
Class Name: SimultaneousTrainer
Method Name: _create
Project Name: SheffieldML/GPy
Commit Name: 350497c72606f188f83b68588140f0058190559b
Time: 2013-04-16
Author: ibinbei@gmail.com
File Name: GPy/models/mrd.py
Class Name: MRD
Method Name: __init__
Project Name: theislab/scanpy
Commit Name: eefb7289f964533499cb31c0fc0ca37a2d2cc142
Time: 2017-02-06
Author: f.alex.wolf@gmx.de
File Name: scanpy/tools/drawg.py
Class Name:
Method Name: plot