44
55from graphene .relay import Node
66
7- from .fixtures import setup_fixtures
7+ from .fixtures import fixtures
88from .models import Article , Reporter
99from .types import (ArticleNode ,
1010 EditorNode ,
@@ -18,7 +18,7 @@ def get_nodes(data, key):
1818 return map (lambda edge : edge ['node' ], data [key ]['edges' ])
1919
2020
21- def test_should_query_reporter (setup_fixtures ):
21+ def test_should_query_reporter (fixtures ):
2222
2323 class Query (graphene .ObjectType ):
2424 node = Node .Field ()
@@ -113,7 +113,7 @@ def resolve_reporter(self, *args, **kwargs):
113113 assert dict (result .data ['reporter' ]) == expected ['reporter' ]
114114
115115
116- def test_should_query_all_editors (setup_fixtures ):
116+ def test_should_query_all_editors (fixtures ):
117117
118118 class Query (graphene .ObjectType ):
119119 node = Node .Field ()
@@ -166,7 +166,7 @@ class Query(graphene.ObjectType):
166166 assert dict (result .data ['allEditors' ]) == expected ['allEditors' ]
167167
168168
169- def test_should_filter_editors_by_id (setup_fixtures ):
169+ def test_should_filter_editors_by_id (fixtures ):
170170
171171 class Query (graphene .ObjectType ):
172172 node = Node .Field ()
@@ -205,7 +205,7 @@ class Query(graphene.ObjectType):
205205 assert dict (result .data ['allEditors' ]) == expected ['allEditors' ]
206206
207207
208- def test_should_filter (setup_fixtures ):
208+ def test_should_filter (fixtures ):
209209
210210 class Query (graphene .ObjectType ):
211211 node = Node .Field ()
@@ -245,7 +245,7 @@ class Query(graphene.ObjectType):
245245 assert result .data == expected
246246
247247
248- def test_should_filter_by_reference_field (setup_fixtures ):
248+ def test_should_filter_by_reference_field (fixtures ):
249249
250250 class Query (graphene .ObjectType ):
251251 node = Node .Field ()
@@ -285,7 +285,7 @@ class Query(graphene.ObjectType):
285285 assert result .data == expected
286286
287287
288- def test_should_filter_through_inheritance (setup_fixtures ):
288+ def test_should_filter_through_inheritance (fixtures ):
289289
290290 class Query (graphene .ObjectType ):
291291 node = Node .Field ()
@@ -322,7 +322,7 @@ class Query(graphene.ObjectType):
322322 expected , sort_keys = True )
323323
324324
325- def test_should_get_node_by_id (setup_fixtures ):
325+ def test_should_get_node_by_id (fixtures ):
326326 # Notes: https://goo.gl/hMNRgs
327327 class Query (graphene .ObjectType ):
328328 reporter = Node .Field (ReporterNode )
@@ -348,7 +348,7 @@ class Query(graphene.ObjectType):
348348 assert result .data == expected
349349
350350
351- def test_should_first_n (setup_fixtures ):
351+ def test_should_first_n (fixtures ):
352352
353353 class Query (graphene .ObjectType ):
354354
@@ -404,7 +404,7 @@ class Query(graphene.ObjectType):
404404 for item in get_nodes (expected , 'editors' ))
405405
406406
407- def test_should_after (setup_fixtures ):
407+ def test_should_after (fixtures ):
408408 class Query (graphene .ObjectType ):
409409
410410 players = MongoengineConnectionField (PlayerNode )
@@ -447,7 +447,7 @@ class Query(graphene.ObjectType):
447447 expected , sort_keys = True )
448448
449449
450- def test_should_before (setup_fixtures ):
450+ def test_should_before (fixtures ):
451451 class Query (graphene .ObjectType ):
452452
453453 players = MongoengineConnectionField (PlayerNode )
@@ -490,7 +490,7 @@ class Query(graphene.ObjectType):
490490 expected , sort_keys = True )
491491
492492
493- def test_should_last_n (setup_fixtures ):
493+ def test_should_last_n (fixtures ):
494494 class Query (graphene .ObjectType ):
495495 players = MongoengineConnectionField (PlayerNode )
496496
@@ -532,7 +532,7 @@ class Query(graphene.ObjectType):
532532 expected , sort_keys = True )
533533
534534
535- def test_should_self_reference (setup_fixtures ):
535+ def test_should_self_reference (fixtures ):
536536
537537 class Query (graphene .ObjectType ):
538538
0 commit comments