From 9d9e2136078475af23b992372aa77e20bc518259 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 22 Sep 2021 15:33:58 +0300 Subject: [PATCH] add test_api_infobases_available --- tests/test_pub1c-rest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_pub1c-rest.py b/tests/test_pub1c-rest.py index 07ba624..587ab4d 100644 --- a/tests/test_pub1c-rest.py +++ b/tests/test_pub1c-rest.py @@ -114,3 +114,13 @@ def test_api_module(client): response = client.put(endpoint) assert 304 == response.status_code + +def test_api_infobases_available(client): + response = client.get('/api/v1/infobases-available') + data = response.get_json() + expected = ['test1', 'test2', 'bpdemo'] + expected.sort() + actual = data + actual.sort() + assert actual == expected +