Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for overrider_dependency_with_sub (0.12 sec)

  1. tests/test_dependency_overrides.py

        app.dependency_overrides[common_parameters] = overrider_dependency_with_sub
        response = client.get("/main-depends/?k=bar")
        assert response.status_code == 200
        assert response.json() == {"in": "main-depends", "params": {"k": "bar"}}
        app.dependency_overrides = {}
    
    
    def test_override_with_sub_decorator_depends():
        app.dependency_overrides[common_parameters] = overrider_dependency_with_sub
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top