refactor(util/tufmetadata/test): move app test to gc suite
This commit is contained in:
parent
2a20807e8a
commit
ccca0c9655
2 changed files with 8 additions and 11 deletions
|
@ -613,3 +613,10 @@ def test_images_shared_cas_with_new_blob_table(default_tag_policy, initialized_d
|
|||
|
||||
# Ensure the CAS path still exists, as it is referenced by the Blob table
|
||||
assert storage.exists({preferred}, storage.blob_path(digest))
|
||||
|
||||
|
||||
def test_purge_repo(app):
|
||||
""" Test that app registers delete_metadata function on repository deletions """
|
||||
with patch('app.tuf_metadata_api') as mock_tuf:
|
||||
model.repository.purge_repository("ns", "repo")
|
||||
assert mock_tuf.delete_metadata.called_with("ns", "repo")
|
||||
|
|
Reference in a new issue