mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
12 lines
438 B
Python
12 lines
438 B
Python
from rest_framework.reverse import reverse
|
|
from rest_framework.status import HTTP_200_OK
|
|
|
|
|
|
def test_can_generate_open_api_schema(api_client):
|
|
response = api_client.get(reverse("api:json_schema"))
|
|
assert response.status_code == HTTP_200_OK
|
|
|
|
# The second request is going to be cached. This is to make sure that's working.
|
|
response = api_client.get(reverse("api:json_schema"))
|
|
assert response.status_code == HTTP_200_OK
|