We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7134a4a commit f1e5852Copy full SHA for f1e5852
tests/conftest.py
@@ -10,6 +10,8 @@
10
def app(request):
11
app = flask.Flask(request.module.__name__)
12
app.testing = True
13
+ app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
14
+ app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
15
return app
16
17
tests/test_signals.py
@@ -10,7 +10,13 @@
)
-def test_before_committed(db, Todo):
+@pytest.fixture()
+def app(app):
+ app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
+ return app
+
18
19
+def test_before_committed(app, db, Todo):
20
class Namespace(object):
21
is_received = False
22
0 commit comments