1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/backend/tests/baserow/api/test_api_spec.py
2023-04-13 08:16:07 +00:00

11 lines
303 B
Python

from django.shortcuts import reverse
from openapi_spec_validator import openapi_v30_spec_validator
def test_openapi_spec(api_client):
response = api_client.get(reverse("api:json_schema"))
# If no exception is raised the spec is valid
openapi_v30_spec_validator.validate(response.json())