Skip to content

Commit f81d200

Browse files
committed
fix tests on 3.8 and in CI context
1 parent 2400b5b commit f81d200

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

django_typer/tests/apps/test_app/management/commands/completion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def handle(
5959
),
6060
),
6161
] = None,
62-
commands: t.Annotated[
62+
commands: Annotated[
6363
t.List[str],
6464
typer.Option(
6565
"--cmd",
@@ -69,7 +69,7 @@ def handle(
6969
),
7070
),
7171
] = [],
72-
command_dups: t.Annotated[
72+
command_dups: Annotated[
7373
t.List[str],
7474
typer.Option(
7575
"--cmd-dup",

django_typer/tests/test_howto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class TestGroupsHowto(TestCase):
8989
def test_howto_groups(self):
9090
stdout = StringIO()
9191

92-
groups = get_command(self.cmd, TyperCommand, stdout=stdout)
92+
groups = get_command(self.cmd, TyperCommand, stdout=stdout, no_color=True)
9393

9494
groups.print_help("./howto.py", "groups")
9595
self.assertEqual(stdout.getvalue().strip(), self.root_help.strip())
@@ -176,7 +176,7 @@ class TestDefaultOptionsHowto(TestCase):
176176
def test_howto_default_options(self):
177177
stdout = StringIO()
178178

179-
groups = get_command(self.cmd, TyperCommand, stdout=stdout)
179+
groups = get_command(self.cmd, TyperCommand, stdout=stdout, no_color=True)
180180

181181
groups.print_help("./howto.py", "default_options")
182182
self.assertEqual(stdout.getvalue().strip(), self.cmd_help.strip())

0 commit comments

Comments
 (0)