Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_dependency_normal_exceptions.py

        assert response.json() == {"detail": "Invalid user"}
        assert state["except"] is True
        assert state["finally"] is True
        assert fake_database["rick"] == "Rick Sanchez"
    
    
    def test_dependency_no_exception():
        assert state["except"] is False
        assert state["finally"] is False
        response = client.put("/user/rick", json="Morty")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top