FitTrackee/fittrackee/tests/conftest.py

13 lines
385 B
Python
Raw Normal View History

import os
2018-04-09 22:09:58 +02:00
os.environ['FLASK_ENV'] = 'testing'
os.environ['APP_SETTINGS'] = 'fittrackee.config.TestingConfig'
2020-05-02 10:39:43 +02:00
# to avoid resetting dev database during tests
2021-01-02 19:28:03 +01:00
os.environ['DATABASE_URL'] = os.environ['DATABASE_TEST_URL']
2021-01-30 11:20:15 +01:00
pytest_plugins = [
'fittrackee.tests.fixtures.fixtures_app',
'fittrackee.tests.fixtures.fixtures_workouts',
'fittrackee.tests.fixtures.fixtures_users',
]