mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 01:47:57 +03:00 
			
		
		
		
	Fixed tests
This commit is contained in:
		
							parent
							
								
									9539d012dd
								
							
						
					
					
						commit
						d11719507c
					
				| 
						 | 
				
			
			@ -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}'))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,4 @@
 | 
			
		|||
from django.conf.urls import url
 | 
			
		||||
 | 
			
		||||
from ..views import GraphQLView
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								graphene_django/tests/urls_pretty.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								graphene_django/tests/urls_pretty.py
									
									
									
									
									
										Normal 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)),
 | 
			
		||||
]
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user