mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
11 lines
303 B
Python
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())
|