Skip to content

Commit

Permalink
Update tests to expect new batch response format
Browse files Browse the repository at this point in the history
  • Loading branch information
HorizonXP committed Mar 3, 2017
1 parent 9eb339e commit f720912
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions graphene_django/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_batch_allows_post_with_json_encoding(client):
assert response.status_code == 200
assert response_json(response) == [{
'id': 1,
'payload': { 'data': {'test': "Hello World"} },
'data': {'test': "Hello World"},
'status': 200,
}]

Expand Down Expand Up @@ -233,7 +233,7 @@ def test_batch_supports_post_json_query_with_string_variables(client):
assert response.status_code == 200
assert response_json(response) == [{
'id': 1,
'payload': { 'data': {'test': "Hello Dolly"} },
'data': {'test': "Hello Dolly"},
'status': 200,
}]

Expand All @@ -260,7 +260,7 @@ def test_batch_supports_post_json_query_with_json_variables(client):
assert response.status_code == 200
assert response_json(response) == [{
'id': 1,
'payload': { 'data': {'test': "Hello Dolly"} },
'data': {'test': "Hello Dolly"},
'status': 200,
}]

Expand Down Expand Up @@ -356,11 +356,9 @@ def test_batch_allows_post_with_operation_name(client):
assert response.status_code == 200
assert response_json(response) == [{
'id': 1,
'payload': {
'data': {
'test': 'Hello World',
'shared': 'Hello Everyone'
}
'data': {
'test': 'Hello World',
'shared': 'Hello Everyone'
},
'status': 200,
}]
Expand Down

0 comments on commit f720912

Please sign in to comment.