This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-17 10:51:38 +00:00
|
|
|
import pytest
|
|
|
|
|
2020-09-22 09:57:39 +00:00
|
|
|
from ereuse_devicehub import __version__
|
2020-09-30 07:30:17 +00:00
|
|
|
from ereuse_devicehub.client import Client
|
2020-08-17 10:51:38 +00:00
|
|
|
|
|
|
|
|
2020-09-18 09:32:20 +00:00
|
|
|
@pytest.mark.mvp
|
2020-09-30 07:30:17 +00:00
|
|
|
def test_get_version(client: Client):
|
2020-09-18 09:32:20 +00:00
|
|
|
"""Checks GETting versions of services."""
|
2020-08-17 16:46:44 +00:00
|
|
|
|
2020-09-18 09:32:20 +00:00
|
|
|
content, res = client.get("/versions/", None)
|
2020-08-17 16:46:44 +00:00
|
|
|
|
2020-09-22 09:57:39 +00:00
|
|
|
version = {'devicehub': __version__, 'ereuse_tag': '0.0.0'}
|
2020-09-18 09:32:20 +00:00
|
|
|
assert res.status_code == 200
|
|
|
|
assert content == version
|