Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_fastapi_cli_not_installed (0.18 sec)

  1. tests/test_fastapi_cli.py

            ],
            capture_output=True,
            encoding="utf-8",
        )
        assert result.returncode == 1, result.stdout
        assert "Using path non_existent_file.py" in result.stdout
    
    
    def test_fastapi_cli_not_installed():
        with patch.object(fastapi.cli, "cli_main", None):
            with pytest.raises(RuntimeError) as exc_info:
                fastapi.cli.main()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 02 06:03:05 UTC 2024
    - 790 bytes
    - Viewed (0)
Back to top