Skip to content

Commit 5160a97

Browse files
author
Brian Kohan
committed
try fix linux bash shellcompletion in CI
1 parent 6473afd commit 5160a97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django_typer/tests/shellcompletion/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ def run_app_completion(self):
183183

184184
def run_command_completion(self):
185185
completions = self.get_completions(self.launch_script, "complet")
186-
self.assertIn("completion", completions)
186+
# annoingly in CI there are some spaces inserted between the incomplete phrase
187+
# and the completion on linux in bash specifically
188+
self.assertTrue(re.match(r".*complet\s*ion.*", completions))
187189
completions = self.get_completions(self.launch_script, " ")
188190
self.assertIn("makemigrations", completions)
189191
self.assertIn("migrate", completions)

0 commit comments

Comments
 (0)