Skip to content

Commit 8698407

Browse files
committed
Fixed tests
1 parent cfa9660 commit 8698407

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene_sqlalchemy/tests/test_query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import graphene
66
from graphene.relay import Node
77

8+
from ..registry import reset_global_registry
89
from ..fields import SQLAlchemyConnectionField
910
from ..types import SQLAlchemyObjectType
1011
from .models import Article, Base, Editor, Reporter
@@ -14,6 +15,7 @@
1415

1516
@pytest.yield_fixture(scope='function')
1617
def session():
18+
reset_global_registry()
1719
connection = db.engine.connect()
1820
transaction = connection.begin()
1921
Base.metadata.create_all(connection)

0 commit comments

Comments
 (0)