blob: 1d72cd8c8367f4a28011fe07c4191adfe2b73f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""Version endpoint test module.
"""
import aiohttp
async def test_version():
"""Test version endpoint"""
async with aiohttp.ClientSession() as session:
async with session.get('http://0.0.0.0:8080/version') as resp:
assert resp.status == 200
resp = await resp.json()
assert 'api' in resp.keys()
|