Files
qdrant/tests/openapi/openapi_integration/test_root_api.py
Kumar Shivendu f514b29641 refactor: OpenAPI tests (#3606)
* test: Restructure OpenAPI tests

* fix: Remove cache dirs

* fix: Remove cache dirs from helpers

* fix: Path of openapi.json

* fix: Update path of openapi tests everywhere
2024-03-05 17:07:42 +01:00

15 lines
400 B
Python

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