update
This commit is contained in:
@@ -27,6 +27,15 @@ def test_help_flag():
|
||||
assert "setup" in result.stdout
|
||||
|
||||
|
||||
def test_no_color_flag():
|
||||
"""Test --no-color flag is accepted."""
|
||||
result = subprocess.run(
|
||||
[sys.executable, "-m", "flow", "--no-color", "--help"],
|
||||
capture_output=True, text=True,
|
||||
)
|
||||
assert result.returncode == 0
|
||||
|
||||
|
||||
def test_dotfiles_help():
|
||||
result = subprocess.run(
|
||||
[sys.executable, "-m", "flow", "dotfiles", "--help"],
|
||||
@@ -35,6 +44,12 @@ def test_dotfiles_help():
|
||||
assert result.returncode == 0
|
||||
assert "link" in result.stdout
|
||||
assert "unlink" in result.stdout
|
||||
# Removed commands should not appear
|
||||
assert "relink" not in result.stdout
|
||||
assert "undo" not in result.stdout
|
||||
assert "clean" not in result.stdout
|
||||
assert "sync" not in result.stdout
|
||||
assert "modules" not in result.stdout
|
||||
|
||||
|
||||
def test_packages_help():
|
||||
|
||||
Reference in New Issue
Block a user