Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for assert_not_called (0.96 sec)

  1. tests/test_tutorial/test_debugging/test_tutorial001.py

        if sys.modules.get(MOD_NAME):
            del sys.modules[MOD_NAME]  # pragma: no cover
        with unittest.mock.patch("uvicorn.run") as uvicorn_run_mock:
            importlib.import_module(MOD_NAME)
        uvicorn_run_mock.assert_not_called()
    
    
    def test_get_root(client: TestClient):
        response = client.get("/")
        assert response.status_code == 200
        assert response.json() == {"hello world": "ba"}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top