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

import pytest
from ereuse_devicehub import __version__
from ereuse_devicehub.client import Client
@pytest.mark.mvp
def test_get_version(client: Client):
"""Checks GETting versions of services."""
content, res = client.get("/versions/", None)
version = {'devicehub': __version__, 'ereuse_tag': '0.0.0'}
assert res.status_code == 200
assert content == version