Add a test for deleting a user with a user prompt
This commit is contained in:
parent
83e8d62bea
commit
bf2804bd4d
2 changed files with 6 additions and 1 deletions
|
@ -783,7 +783,7 @@ def populate_database(minimal=False, with_storage=False):
|
||||||
fake_queue = WorkQueue('fakequeue', tf)
|
fake_queue = WorkQueue('fakequeue', tf)
|
||||||
fake_queue.put(['canonical', 'job', 'name'], '{}')
|
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():
|
while repositoryactioncounter.count_repository_actions():
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -719,6 +719,11 @@ class TestDeleteNamespace(ApiTestCase):
|
||||||
with check_transitive_deletes():
|
with check_transitive_deletes():
|
||||||
self.deleteResponse(User, expected_code=204)
|
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):
|
class TestSignin(ApiTestCase):
|
||||||
def test_signin_unicode(self):
|
def test_signin_unicode(self):
|
||||||
|
|
Reference in a new issue