add test_api_infobases_available

This commit is contained in:
Dmitry Belyaev 2021-09-22 15:33:58 +03:00
parent e8341cb899
commit 9d9e213607
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -114,3 +114,13 @@ def test_api_module(client):
response = client.put(endpoint) response = client.put(endpoint)
assert 304 == response.status_code 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