Skip to content

Commit

Permalink
Use in-memory database to speed up tests
Browse files Browse the repository at this point in the history
This also avoids problems when test tables are changed,
in which case we would need to drop and recreate them.
  • Loading branch information
Cito committed Apr 11, 2019
1 parent 2f9145c commit 3143397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_sqlalchemy/tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ..utils import sort_argument_for_model, sort_enum_for_model
from .models import Article, Base, Editor, Hairkind, Pet, Reporter

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


@pytest.yield_fixture(scope="function")
Expand Down

0 comments on commit 3143397

Please sign in to comment.