colibri.qdrant / tests /openapi /test_root_api.py
Gouzi Mohaled
Ajout du dossier tests
3932407
raw
history blame contribute delete
400 Bytes
from .helpers.helpers import request_with_validation
def test_root_api():
response = request_with_validation(
api='/',
method="GET",
)
assert response.ok
body = response.json()
assert body.keys() == {'title', 'version','commit'}
assert body['title'] == 'qdrant - vector search engine'
assert len(body['version']) > 0
assert len(body['commit']) == 40