Skip to content

Commit c168576

Browse files
committed
fix shell completion tests
1 parent aa00a71 commit c168576

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/shellcompletion/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,12 @@ def test_path_completion(self):
391391
self.install()
392392
self.verify_install()
393393
completions = self.get_completions(
394-
self.launch_script, "completion", "--path", "./django_typer/co"
394+
self.launch_script, "completion", "--path", "./src/django_typer/co"
395395
)
396396
self.assertIn("completers", completions)
397397
self.assertIn("config.py", completions)
398398
completions = self.get_completions(
399-
self.launch_script, "completion", "--dir", "./django_typer/"
399+
self.launch_script, "completion", "--dir", "./src/django_typer/"
400400
)
401401
self.assertNotIn("utils.py", completions)
402402
self.assertNotIn("config.py", completions)

tests/shellcompletion/test_bash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ def test_source_template(self):
6969
self.assertEqual(
7070
(
7171
Path(__file__).parent.parent.parent
72-
/ "django_typer/templates/shell_complete/bash.sh"
72+
/ "src/django_typer/templates/shell_complete/bash.sh"
7373
).read_text(),
7474
self.get_completer().source_template,
7575
)
7676

7777
self.assertEqual(
7878
(
7979
Path(__file__).parent.parent.parent
80-
/ "django_typer/templates/shell_complete/zsh.sh"
80+
/ "src/django_typer/templates/shell_complete/zsh.sh"
8181
).read_text(),
8282
self.get_completer(template="shell_complete/zsh.sh").source_template,
8383
)

tests/shellcompletion/test_powershell.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def test_mixed_path_dividers(self):
5959
self.install()
6060
self.verify_install()
6161
self.assertIn(
62-
"django_typer\\completers",
63-
self.get_completions("completion", "--path", "./django_typer\\comp"),
62+
"src/django_typer\\completers",
63+
self.get_completions("completion", "--path", "./src/django_typer\\comp"),
6464
)
6565
self.remove()
6666
self.verify_remove()
@@ -156,8 +156,8 @@ def test_mixed_path_dividers(self):
156156
self.install()
157157
self.verify_install()
158158
self.assertIn(
159-
"django_typer\\completers",
160-
self.get_completions("completion", "--path", "./django_typer\\comp"),
159+
"src/django_typer\\completers",
160+
self.get_completions("completion", "--path", "./src/django_typer\\comp"),
161161
)
162162
self.remove()
163163
self.verify_remove()

0 commit comments

Comments
 (0)