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 41dce60 commit fab9e63Copy full SHA for fab9e63
tests/test_cli.py
@@ -30,7 +30,7 @@ def test_invalid_port():
30
31
def test_invalid_root():
32
"""测试无效根目录"""
33
- result = runner.invoke(app, ["--root", "/nonexistent/path"])
+ result = runner.invoke(app, ["--directory", "/nonexistent/path"])
34
assert result.exit_code == 2
35
for word in "Directory '/nonexistent/path' does not exist".split():
36
assert word in result.stdout
@@ -44,7 +44,7 @@ def test_server_start(temp_dir):
44
"""测试服务器启动"""
45
with patch("servefs.cli.uvicorn.run") as mock_run:
46
result = runner.invoke(app, [
47
- "--root", str(temp_dir),
+ "--directory", str(temp_dir),
48
"--port", "8888",
49
"--host", "127.0.0.1",
50
"--debug"
0 commit comments