From 49ea96b862828ee282499b53c720d25d6bc6184e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 4 Aug 2020 12:10:18 +0200 Subject: [PATCH] UniqueViolation intead of DBError in test_snapshot_upload_twice_uuid_error --- tests/test_snapshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_snapshot.py b/tests/test_snapshot.py index 9372503f..4482e66e 100644 --- a/tests/test_snapshot.py +++ b/tests/test_snapshot.py @@ -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