39f5eaf6c4e15edad7f9a0e24ae89277ae244984,app/tests/reader_studies_tests/test_api.py,,test_api_list_is_filtered,#Any#,13
Before Change
assert response.json()["count"] == 1
assert response.json()["results"][0]["pk"] == str(q1.pk)
response = get_view_for_user(
viewname="api:reader-study-question-answers-list",
reverse_kwargs={"reader_study_pk": rs1.pk, "question_pk": q1.pk},
user=user,
client=client,
)
assert response.status_code == 200
assert response.json()["count"] == 1
assert response.json()["results"][0]["pk"] == str(a1.pk)
After Change
// assert response.json()["count"] == 1
assert response.json()["results"][0]["pk"] == str(q1.pk)
response = get_view_for_user(
viewname="api:reader-studies-questions-answer-list",
user=user,
client=client,
)
assert response.status_code == 200
// assert response.json()["count"] == 1
assert response.json()["results"][0]["pk"] == str(a1.pk)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: comic/grand-challenge.org
Commit Name: 39f5eaf6c4e15edad7f9a0e24ae89277ae244984
Time: 2019-07-22
Author: code@jmsmkn.com
File Name: app/tests/reader_studies_tests/test_api.py
Class Name:
Method Name: test_api_list_is_filtered
Project Name: comic/grand-challenge.org
Commit Name: 983b000b57f53517a43d0c8c30f6896fcb3d61e5
Time: 2020-01-10
Author: haimasree.diag@gmail.com
File Name: app/tests/cases_tests/test_api.py
Class Name:
Method Name: test_upload_session_list
Project Name: comic/grand-challenge.org
Commit Name: 702e79d8b9c3abdfd7c72c0786ce0c8fa78a93a0
Time: 2017-12-13
Author: jamesmeakin@gmail.com
File Name: app/tests/evaluation_tests/test_views.py
Class Name:
Method Name: assert_viewname_status