Skip to content

Commit 433b404

Browse files
authored
✅ Fix exit code 2 in gitmojis CLI tests (#149)
1 parent ab597f2 commit 433b404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111

1212
def test_gitmojis_cli_runs_as_entry_point():
13-
result = subprocess.run(["gitmojis"])
13+
result = subprocess.run(["gitmojis", "--version"])
1414

1515
assert result.returncode == 0
1616

1717

1818
def test_gitmojis_cli_runs_as_python_script():
19-
result = subprocess.run([sys.executable, "-m", "gitmojis"])
19+
result = subprocess.run([sys.executable, "-m", "gitmojis", "--version"])
2020

2121
assert result.returncode == 0
2222

0 commit comments

Comments
 (0)