mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 17:52:26 -05:00
dont let people accidentally delete their local database by forcing it to run against a different DB (ie test_notifications_api)
This commit is contained in:
@@ -33,6 +33,8 @@ def client(notify_api):
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def notify_db(notify_api, request):
|
||||
assert db.engine.url.database != 'notification_api', 'dont run tests against main db'
|
||||
|
||||
Migrate(notify_api, db)
|
||||
Manager(db, MigrateCommand)
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
Reference in New Issue
Block a user