UniqueViolation intead of DBError in test_snapshot_upload_twice_uuid_error

This commit is contained in:
Cayo Puigdefabregas 2020-08-04 12:10:18 +02:00
parent 2f1d066162
commit 49ea96b862
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ def test_snapshot_different_properties_same_tags(user: UserClient, tag_id: str):
def test_snapshot_upload_twice_uuid_error(user: UserClient):
pc1 = file('basic.snapshot')
user.post(pc1, res=Snapshot)
user.post(pc1, res=Snapshot, status=DBError)
user.post(pc1, res=Snapshot, status=UniqueViolation)
@pytest.mark.mvp