@pytest.mark.django_db
def test_supports_post_json_query_with_json_variables(client):
    response = client.post(url_string(), j(query='query helloWho($who: String){ test(who: $who) }', variables={'who': 'Dolly'}), 'application/json')
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    expected_dict = {'data': {'test': 'Hello Dolly'}}
    assert (response.json() == expected_dict)
@pytest.mark.django_db
def test_supports_post_json_query_with_json_variables(client):
    response = client.post(url_string(), j(query='query helloWho($who: String){ test(who: $who) }', variables={'who': 'Dolly'}), 'application/json')
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    expected_dict = {'data': {'test': 'Hello Dolly'}}
    assert (response.json() == expected_dict)