4889d4a5fa1409d0a237a63b97520bdf46b7137d,app/tests/reader_studies_tests/test_forms.py,,test_reader_study_create,#Any#,95

Before Change


    creator = get_rs_creator()
    ws = WorkstationFactory()

    response = get_view_for_user(
        viewname="reader-studies:create",
        client=client,
        method=client.post,
        data={
            "title": "foo bar",
            "logo": get_temporary_image(),
            "workstation": ws.pk,
        },
        follow=True,
        user=creator,
    )
    assert response.status_code == 200

    rs = ReaderStudy.objects.get(title="foo bar")

After Change


    ws.add_user(user=creator)

    response = try_create_rs()
    assert "error_1_id_workstation" not in response.rendered_content
    assert response.status_code == 200

    rs = ReaderStudy.objects.get(title="foo bar")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: 4889d4a5fa1409d0a237a63b97520bdf46b7137d
Time: 2019-08-12
Author: code@jmsmkn.com
File Name: app/tests/reader_studies_tests/test_forms.py
Class Name:
Method Name: test_reader_study_create


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: 4f8a3739ec24cd07cad430bc5bfaaf095c6b3582
Time: 2020-01-17
Author: code@jmsmkn.com
File Name: app/tests/cases_tests/test_api.py
Class Name:
Method Name: test_process_images_api_view