We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5d8665 commit bf56194Copy full SHA for bf56194
tests/test_cli.py
@@ -1,4 +1,5 @@
1
import sys
2
+import subprocess
3
4
import pytest
5
@@ -78,3 +79,16 @@ def test_commitizen_debug_excepthook(capsys):
78
79
assert excinfo.type == SystemExit
80
assert excinfo.value.code == NotAGitProjectError.exit_code
81
assert "NotAGitProjectError" in str(excinfo.traceback[0])
82
+
83
84
+def test_argcomplete_activation():
85
+ """
86
+ This function is testing the one-time activation of argcomplete for
87
+ commitizen only.
88
89
+ Equivalent to run:
90
+ $ eval "$(register-python-argcomplete pytest)"
91
92
+ output = subprocess.run(["register-python-argcomplete", "cz"])
93
94
+ assert output.returncode == 0
0 commit comments