mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-03 20:03:30 +03:00
ran black to make gitlab unit test pass
This commit is contained in:
parent
e5a8e9eb48
commit
868e9136b7
|
@ -435,9 +435,7 @@ def test_allows_post_with_operation_name(client):
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
# returns just json as __dict__
|
# returns just json as __dict__
|
||||||
expected_dict = {
|
expected_dict = {"data": {"test": "Hello World", "shared": "Hello Everyone"}}
|
||||||
"data": {"test": "Hello World", "shared": "Hello Everyone"}
|
|
||||||
}
|
|
||||||
# directly compare all key,value for __dict__
|
# directly compare all key,value for __dict__
|
||||||
assert response.json() == expected_dict
|
assert response.json() == expected_dict
|
||||||
|
|
||||||
|
@ -491,15 +489,13 @@ def test_allows_post_with_get_operation_name(client):
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
# returns just json as list of __dict__
|
# returns just json as list of __dict__
|
||||||
expected_dict = {
|
expected_dict = {"data": {"test": "Hello World", "shared": "Hello Everyone"}}
|
||||||
"data": {"test": "Hello World", "shared": "Hello Everyone"}
|
|
||||||
}
|
|
||||||
# directly compare all key,value for __dict__
|
# directly compare all key,value for __dict__
|
||||||
assert response.json() == expected_dict
|
assert response.json() == expected_dict
|
||||||
|
|
||||||
|
|
||||||
# inherited/ ??? -- does not work cuurently
|
# inherited/ ??? -- does not work cuurently
|
||||||
'''
|
"""
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
@pytest.mark.urls("graphene_django.tests.urls_inherited")
|
@pytest.mark.urls("graphene_django.tests.urls_inherited")
|
||||||
def test_inherited_class_with_attributes_works(client):
|
def test_inherited_class_with_attributes_works(client):
|
||||||
|
@ -517,7 +513,7 @@ def test_inherited_class_with_attributes_works(client):
|
||||||
# Check graphiql works
|
# Check graphiql works
|
||||||
response = client.get(url_string(inherited_url), HTTP_ACCEPT="text/html")
|
response = client.get(url_string(inherited_url), HTTP_ACCEPT="text/html")
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
'''
|
"""
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
|
@ -618,9 +614,7 @@ def test_handles_plain_post_text(client):
|
||||||
)
|
)
|
||||||
assert response.status_code == 400
|
assert response.status_code == 400
|
||||||
# returns just json as list of __dict__
|
# returns just json as list of __dict__
|
||||||
expected_dict = {
|
expected_dict = {"errors": [{"message": "Must provide query string."}]}
|
||||||
"errors": [{"message": "Must provide query string."}]
|
|
||||||
}
|
|
||||||
# directly compare all key,value for __dict__
|
# directly compare all key,value for __dict__
|
||||||
assert response.json() == expected_dict
|
assert response.json() == expected_dict
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user