Skip to content

Commit f1e5852

Browse files
committed
config to ignore warnings in tests
1 parent 7134a4a commit f1e5852

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
def app(request):
1111
app = flask.Flask(request.module.__name__)
1212
app.testing = True
13+
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
14+
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
1315
return app
1416

1517

tests/test_signals.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
)
1111

1212

13-
def test_before_committed(db, Todo):
13+
@pytest.fixture()
14+
def app(app):
15+
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
16+
return app
17+
18+
19+
def test_before_committed(app, db, Todo):
1420
class Namespace(object):
1521
is_received = False
1622

0 commit comments

Comments
 (0)