From 2f1d06616223b2ad369919dcf4c2134c26ecb58b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 4 Aug 2020 10:27:49 +0200 Subject: [PATCH 1/2] add /document/stock/ to test_api_docs --- tests/test_basic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_basic.py b/tests/test_basic.py index ce941d87..eab9d4ef 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -51,6 +51,7 @@ def test_api_docs(client: Client): '/documents/devices/', '/documents/erasures/', '/documents/static/{filename}', + '/documents/stock/', '/drills/{id}/merge/', '/graphic-cards/{id}/merge/', '/hard-drives/{id}/merge/', From 49ea96b862828ee282499b53c720d25d6bc6184e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 4 Aug 2020 12:10:18 +0200 Subject: [PATCH 2/2] 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