Skip to content

Commit 9c44ada

Browse files
committed
✅ Fix exit code 2 in gitmojis CLI tests
1 parent ab597f2 commit 9c44ada

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
from gitmojis.cli import get_commands, gitmojis_cli
99
from gitmojis.model import Guide
1010

11-
1211
def test_gitmojis_cli_runs_as_entry_point():
13-
result = subprocess.run(["gitmojis"])
12+
result = subprocess.run(["gitmojis", "--version"])
1413

1514
assert result.returncode == 0
1615

1716

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

2120
assert result.returncode == 0
2221

0 commit comments

Comments
 (0)