Skip to content

Commit 3143397

Browse files
committed
Use in-memory database to speed up tests
This also avoids problems when test tables are changed, in which case we would need to drop and recreate them.
1 parent 2f9145c commit 3143397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_sqlalchemy/tests/test_query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ..utils import sort_argument_for_model, sort_enum_for_model
1212
from .models import Article, Base, Editor, Hairkind, Pet, Reporter
1313

14-
db = create_engine("sqlite:///test_sqlalchemy.sqlite3")
14+
db = create_engine("sqlite://") # use in-memory database
1515

1616

1717
@pytest.yield_fixture(scope="function")

0 commit comments

Comments
 (0)