From 57265c4e7cbadadda472d63c85f8651b4236c230 Mon Sep 17 00:00:00 2001
From: Dmitry <b4tm4n@mail.ru>
Date: Wed, 22 Sep 2021 15:53:24 +0300
Subject: [PATCH] add status:409 test to test_api_publications_add

---
 tests/test_pub1c-rest.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/test_pub1c-rest.py b/tests/test_pub1c-rest.py
index 9ce543c..1b9dd99 100644
--- a/tests/test_pub1c-rest.py
+++ b/tests/test_pub1c-rest.py
@@ -142,3 +142,8 @@ def test_api_publications_add(client):
     data = response.get_json()
     assert data['message'] == 'created'
     assert data['name'] == 'test123'
+    # add same publication
+    response = client.put(path=endpoint, data={'name': 'test123'})
+    assert response.status_code == 409
+
+