We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66c26e commit fc78cb4Copy full SHA for fc78cb4
tests/test_cli.py
@@ -26,12 +26,14 @@ def test_invalid_port():
26
result = runner.invoke(app, ["--port", "99999"])
27
assert result.exit_code == 2
28
assert "Invalid value for '--port'" in result.stdout
29
+ assert "99999" in result.stdout
30
31
def test_invalid_root():
32
"""测试无效根目录"""
33
result = runner.invoke(app, ["--root", "/nonexistent/path"])
34
- assert "Invalid value for '--root'" in result.stdout
35
+ for word in "Directory '/nonexistent/path' does not exist".split():
36
+ assert word in result.stdout
37
38
@pytest.fixture
39
def temp_dir(tmp_path):
0 commit comments