Skip to content

test_swagger#

test_swagger#

Test that Swagger schema is rendered successfully.

Source code in tests/unit/swagger/test_swagger.py
@pytest.mark.django_db
def test_swagger():
    """Test that Swagger schema is rendered successfully."""
    client = APIClient()
    res = client.get("/v3/swagger/?format=openapi")
    assert res.status_code == 200