@pytest.mark.django_db
def test_allows_mutation_to_exist_within_a_get(client):
    response = client.get(url_string(query='\n        query TestQuery { test }\n        mutation TestMutation { writeTest { test } }\n        ', operationName='TestQuery'))
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    expected_dict = {'data': {'test': 'Hello World'}}
    assert (response.json() == expected_dict)
@pytest.mark.django_db
def test_allows_mutation_to_exist_within_a_get(client):
    response = client.get(url_string(query='\n        query TestQuery { test }\n        mutation TestMutation { writeTest { test } }\n        ', operationName='TestQuery'))
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    expected_dict = {'data': {'test': 'Hello World'}}
    assert (response.json() == expected_dict)