Skip to content

Commit 5bab32a

Browse files
committed
Fix CLI unit test on Windows
1 parent 924f7c1 commit 5bab32a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import subprocess
2+
import sys
23

34

45
def test_main() -> None:
56
"""Test the main function of the CLI."""
67

78
# Run the CLI command
89
result = subprocess.run(
9-
["python", "-m", "fact.cli", "5"],
10+
[sys.executable, "-m", "fact.cli", "5"],
1011
capture_output=True,
1112
text=True,
1213
)

0 commit comments

Comments
 (0)