Skip to content

Commit 47969d3

Browse files
committed
try fix regex matches on prompt install tests
1 parent b13db59 commit 47969d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/shellcompletion/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,10 @@ def test_prompt_install(self, env={}, directory: t.Optional[Path] = None):
504504

505505
rex = re.compile
506506
expected = [
507-
rex(r"Append the above contents to (?P<file>.*)\?"), # 0
508-
rex(r"Create (?P<file>.*) with the above contents\?"), # 1
509-
rex(r"Aborted shell completion installation."), # 2
510-
rex(rf"Installed autocompletion for {self.shell}"), # 3
507+
rex(r"Append\s+the\s+above\s+contents\s+to\s+(?P<file>.*)\?"), # 0
508+
rex(r"Create\s+(?P<file>.*)\s+with\s+the\s+above\s+contents\?"), # 1
509+
rex(r"Aborted\s+shell\s+completion\s+installation."), # 2
510+
rex(rf"Installed\s+autocompletion\s+for\s+{self.shell}"), # 3
511511
]
512512

513513
install_command = [

0 commit comments

Comments
 (0)