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.
devicehub-teal/tests/test_endpoints.py

16 lines
383 B
Python
Raw Permalink Normal View History

2020-08-17 10:51:38 +00:00
import pytest
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-09-18 09:32:20 +00:00
content, res = client.get("/versions/", None)
version = {'devicehub': __version__, 'ereuse_tag': '0.0.0'}
2020-09-18 09:32:20 +00:00
assert res.status_code == 200
assert content == version