- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_override_data (0.11 sec)
-
tests/test_dependency_security_overrides.py
def test_normal(): response = client.get("/user") assert response.json() == { "user": "john", "scopes": ["foo", "bar"], "data": [1, 2, 3], } def test_override_data(): app.dependency_overrides[get_data] = get_data_override response = client.get("/user") assert response.json() == { "user": "john", "scopes": ["foo", "bar"], "data": [3, 4, 5],
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jun 14 15:54:46 UTC 2020 - 1.4K bytes - Viewed (0)