From bf2804bd4d254fe8b4ecce52c3d09d919bb45e3f Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 8 Nov 2016 18:27:12 -0500 Subject: [PATCH] Add a test for deleting a user with a user prompt --- initdb.py | 2 +- test/test_api_usage.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/initdb.py b/initdb.py index d60378900..e03a2998a 100644 --- a/initdb.py +++ b/initdb.py @@ -783,7 +783,7 @@ def populate_database(minimal=False, with_storage=False): fake_queue = WorkQueue('fakequeue', tf) fake_queue.put(['canonical', 'job', 'name'], '{}') - model.user.create_user_prompt(new_user_5, 'confirm_username') + model.user.create_user_prompt(new_user_4, 'confirm_username') while repositoryactioncounter.count_repository_actions(): pass diff --git a/test/test_api_usage.py b/test/test_api_usage.py index 422baca9d..8fba30073 100644 --- a/test/test_api_usage.py +++ b/test/test_api_usage.py @@ -719,6 +719,11 @@ class TestDeleteNamespace(ApiTestCase): with check_transitive_deletes(): self.deleteResponse(User, expected_code=204) + def test_delete_prompted_user(self): + self.login('randomuser') + with check_transitive_deletes(): + self.deleteResponse(User, expected_code=204) + class TestSignin(ApiTestCase): def test_signin_unicode(self):