mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
fix purge functional test data task
* it doesn't delete service email reply to or letter contacts, or contact lists. I don't think the contact lists will ever be an issue but it doesn't hurt to add it to the list of things to remove. * it doesn't remove users from organisations before deleting the users there may be more tables that link to Service that should be deleted, but for now just add these ones that I could spot.
This commit is contained in:
@@ -106,7 +106,7 @@ def purge_functional_test_data(user_email_prefix):
|
||||
"""
|
||||
Remove non-seeded functional test data
|
||||
|
||||
users, services, etc. Give an email prefix. Probably "notify-test-preview".
|
||||
users, services, etc. Give an email prefix. Probably "notify-tests-preview".
|
||||
"""
|
||||
users = User.query.filter(User.email_address.like("{}%".format(user_email_prefix))).all()
|
||||
for usr in users:
|
||||
|
||||
Reference in New Issue
Block a user