Add in positive logging case for purge command

This is useful so we can see that it's doing things, which case is being
hit and know that an empty terminal for an hour isn't a bad thing
This commit is contained in:
David McDonald
2020-05-15 17:34:30 +01:00
parent dbb2dfa502
commit df5ccae4c5

View File

@@ -119,9 +119,11 @@ def purge_functional_test_data(user_email_prefix):
else:
services = dao_fetch_all_services_by_user(usr.id)
if services:
print(f"Deleting user {usr.id} which has related services")
for service in services:
delete_service_and_all_associated_db_objects(service)
else:
print(f"Deleting user {usr.id} which does not have related services")
delete_user_verify_codes(usr)
delete_model_user(usr)