add test_api_config
This commit is contained in:
parent
27ab87a7a2
commit
3d3d3df19f
@ -87,3 +87,14 @@ def test_api_config_test(client):
|
||||
'is_module_valid': True,
|
||||
}
|
||||
|
||||
|
||||
def test_api_config(client):
|
||||
response = client.get('/api/v1/config')
|
||||
data = response.get_json()
|
||||
expected = ['apache_config', 'apache_restart_flagfile', 'infobases', 'dir_path', 'platform_path',
|
||||
'url_base', 'url_prefix', 'vrd_params', 'vrd_path', 'ws_module']
|
||||
expected.sort()
|
||||
actual = list(data.keys())
|
||||
actual.sort()
|
||||
assert actual == expected
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user