1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-17 22:32:02 +00:00
bramw_baserow/backend/tests/baserow/api/test_api_spec.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
303 B
Python
Raw Permalink Normal View History

2022-02-21 10:39:17 +01:00
from django.shortcuts import reverse
2022-08-02 10:28:28 +02:00
2023-04-13 08:16:07 +00:00
from openapi_spec_validator import openapi_v30_spec_validator
2022-02-21 10:39:17 +01:00
def test_openapi_spec(api_client):
response = api_client.get(reverse("api:json_schema"))
# If no exception is raised the spec is valid
2023-04-13 08:16:07 +00:00
openapi_v30_spec_validator.validate(response.json())