Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions integration/test_project_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,26 +128,12 @@ def test_android_sha_certificates(android_app):
for cert in cert_list:
assert cert.name

# Adding the same cert twice should cause an already-exists error.
with pytest.raises(exceptions.AlreadyExistsError) as excinfo:
android_app.add_sha_certificate(project_management.SHACertificate(SHA_256_HASH_2))
assert 'Requested entity already exists' in str(excinfo.value)
assert excinfo.value.cause is not None
assert excinfo.value.http_response is not None

# Delete all certs and assert that they have all been deleted successfully.
for cert in cert_list:
android_app.delete_sha_certificate(cert)

assert android_app.get_sha_certificates() == []

# Deleting a nonexistent cert should cause a not-found error.
with pytest.raises(exceptions.NotFoundError) as excinfo:
android_app.delete_sha_certificate(cert_list[0])
assert 'Requested entity was not found' in str(excinfo.value)
assert excinfo.value.cause is not None
assert excinfo.value.http_response is not None


def test_create_ios_app_already_exists(ios_app):
del ios_app
Expand Down