1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-22 20:32:24 +00:00
bramw_baserow/backend/tests/baserow/api/test_api_spec.py
2022-08-02 10:34:05 +02:00

10 lines
301 B
Python

from django.shortcuts import reverse
from openapi_spec_validator import openapi_v3_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_v3_spec_validator.validate(response.json())