@pytest.mark.django_db
def test_passes_request_into_context_request(client):
    response = client.get(url_string(query='{request}', q='testing'))
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    expected_dict = {'data': {'request': 'testing'}}
    assert (response.json() == expected_dict)
@pytest.mark.django_db
def test_passes_request_into_context_request(client):
    response = client.get(url_string(query='{request}', q='testing'))
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    expected_dict = {'data': {'request': 'testing'}}
    assert (response.json() == expected_dict)