Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_override_with_sub_decorator_depends (0.32 sec)

  1. tests/test_dependency_overrides.py

        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
        response = client.get("/decorator-depends/")
        assert response.status_code == 422
        assert response.json() == IsDict(
    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