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