Fixed tests

This commit is contained in:
Syrus Akbary 2016-09-19 22:11:48 -07:00
parent 9539d012dd
commit d11719507c
3 changed files with 9 additions and 2 deletions

View File

@ -306,7 +306,7 @@ def test_allows_post_with_get_operation_name(client):
}
@pytest.mark.urls('tests.urls_pretty')
@pytest.mark.urls('graphene_django.tests.urls_pretty')
def test_supports_pretty_printing(client):
response = client.get(url_string(query='{test}'))

View File

@ -1,5 +1,4 @@
from django.conf.urls import url
from ..views import GraphQLView
urlpatterns = [

View File

@ -0,0 +1,8 @@
from django.conf.urls import url
from graphql_django_view import GraphQLView
from .schema_view import schema
urlpatterns = [
url(r'^graphql', GraphQLView.as_view(schema=schema, pretty=True)),
]