- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_endpoint_works (0.17 sec)
-
tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py
from dirty_equals import IsDict from fastapi.testclient import TestClient from docs_src.custom_request_and_route.tutorial002 import app client = TestClient(app) def test_endpoint_works(): response = client.post("/", json=[1, 2, 3]) assert response.json() == 6 def test_exception_handler_body_access(): response = client.post("/", json={"numbers": [1, 2, 3]}) assert response.json() == IsDict( {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 1.2K bytes - Viewed (0)