Skip to content

Commit 4ce1c64

Browse files
committed
test: Use FsFileType._meta.registry instead of global registry
1 parent 149acbb commit 4ce1c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_mongo/tests/test_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_should_multipolygon_convert_field():
101101
def test_should_file_convert_field():
102102
from ..advanced_types import FsFileType
103103
dynamic_field = convert_mongoengine_field(
104-
mongoengine.FileField(), registry.get_global_registry())
104+
mongoengine.FileField(), FsFileType._meta.registry)
105105
assert isinstance(dynamic_field, graphene.Dynamic)
106106
graphene_type = dynamic_field.get_type()
107107
assert isinstance(graphene_type, graphene.Field)

0 commit comments

Comments
 (0)