mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
more fix because local is different for some reason
This commit is contained in:
@@ -25,12 +25,6 @@ from tests.app.db import (
|
|||||||
def test_purge_functional_test_data(notify_db_session, notify_api, test_e_address, expected_users):
|
def test_purge_functional_test_data(notify_db_session, notify_api, test_e_address, expected_users):
|
||||||
|
|
||||||
user_count = User.query.count()
|
user_count = User.query.count()
|
||||||
if user_count > 0:
|
|
||||||
users = User.query.all()
|
|
||||||
for user in users:
|
|
||||||
notify_db_session.delete(user)
|
|
||||||
notify_db_session.commit()
|
|
||||||
user_count = User.query.count()
|
|
||||||
assert user_count == 0
|
assert user_count == 0
|
||||||
|
|
||||||
notify_api.test_cli_runner().invoke(
|
notify_api.test_cli_runner().invoke(
|
||||||
|
|||||||
Reference in New Issue
Block a user