- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_file_path (0.06 sec)
-
tests/test_tutorial/test_path_params/test_tutorial004.py
from fastapi.testclient import TestClient from docs_src.path_params.tutorial004 import app client = TestClient(app) def test_file_path(): response = client.get("/files/home/johndoe/myfile.txt") print(response.content) assert response.status_code == 200, response.text assert response.json() == {"file_path": "home/johndoe/myfile.txt"} def test_root_file_path(): response = client.get("/files//home/johndoe/myfile.txt")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.3K bytes - Viewed (0)