needle / test_fastapi_docs.py
Leon4gr45's picture
Upload folder using huggingface_hub (part 2)
25a2c1c verified
Raw History Blame Contribute Delete
280 Bytes
import asyncio
from fastapi.testclient import TestClient
from gateway import app
client = TestClient(app)
def test_docs_url():
response = client.get("/api-docs")
assert response.status_code == 200
if __name__ == "__main__":
test_docs_url()
print("Test passed")