Skip to content

Commit d117195

Browse files
committed
Fixed tests
1 parent 9539d01 commit d117195

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

graphene_django/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def test_allows_post_with_get_operation_name(client):
306306
}
307307

308308

309-
@pytest.mark.urls('tests.urls_pretty')
309+
@pytest.mark.urls('graphene_django.tests.urls_pretty')
310310
def test_supports_pretty_printing(client):
311311
response = client.get(url_string(query='{test}'))
312312

graphene_django/tests/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django.conf.urls import url
2-
32
from ..views import GraphQLView
43

54
urlpatterns = [

graphene_django/tests/urls_pretty.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from django.conf.urls import url
2+
from graphql_django_view import GraphQLView
3+
4+
from .schema_view import schema
5+
6+
urlpatterns = [
7+
url(r'^graphql', GraphQLView.as_view(schema=schema, pretty=True)),
8+
]

0 commit comments

Comments
 (0)