Remove remaining recursive queries on repo delete and add test

This commit is contained in:
Joseph Schorr 2015-12-18 14:18:52 -05:00
parent 49af7ef7b1
commit 94ece129d4
3 changed files with 43 additions and 4 deletions

View file

@ -121,7 +121,7 @@ class TestGarbageCollection(unittest.TestCase):
"""
# Delete all existing repos.
for repo in database.Repository.select():
repo.delete_instance(recursive=True)
model.repository.purge_repository(repo.namespace_user.username, repo.name)
# Change the time machine expiration on the namespace.
(database.User.update(removed_tag_expiration_s=1000000000)