We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dd2e5b commit ecbc53eCopy full SHA for ecbc53e
tests/test_cli.py
@@ -1,3 +1,4 @@
1
+import os
2
import subprocess
3
import sys
4
@@ -84,6 +85,10 @@ def test_commitizen_debug_excepthook(capsys):
84
85
assert "NotAGitProjectError" in str(excinfo.traceback[0])
86
87
88
+@pytest.mark.skipif(
89
+ os.name == "nt",
90
+ reason="`argcomplete` does not support Git Bash on Windows.",
91
+)
92
def test_argcomplete_activation():
93
"""
94
This function is testing the one-time activation of argcomplete for
@@ -92,7 +97,7 @@ def test_argcomplete_activation():
97
Equivalent to run:
98
$ eval "$(register-python-argcomplete pytest)"
99
95
- output = subprocess.run(["register-python-argcomplete", "cz"])
100
+ output = subprocess.run(["py", "-m", "register-python-argcomplete", "cz"])
96
101
102
assert output.returncode == 0
103
0 commit comments