Allow force push for app

This commit is contained in:
Antoine Legrand 2017-03-23 22:50:07 +01:00
parent 3976735230
commit bbd74eabd1
4 changed files with 53 additions and 55 deletions

View file

@ -196,7 +196,6 @@ def push(namespace, package_name):
{"package": reponame, "scopes": ['create']})
Package.create_repository(reponame, private, owner)
if not ModifyRepositoryPermission(namespace, package_name).can():
raise UnauthorizedAccess("Unauthorized access for: %s" % reponame,
{"package": reponame, "scopes": ['push']})

View file

@ -186,10 +186,6 @@ class TestQuayModels(CnrTestModels):
def load_db(self, appconfig):
return appconfig
@pytest.mark.xfail
def test_save_package_exists_force(self, newdb, package_b64blob):
CnrTestModels.test_save_package_exists_force(self, newdb, package_b64blob)
@pytest.mark.xfail
def test_channel_delete_releases(self, db_with_data1):
""" Can't remove a release from the channel, only delete the channel entirely """