Skip to content

Commit 7e404ec

Browse files
committed
fix no rich test #21
1 parent af5b088 commit 7e404ec

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_core.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def test_helps_rich(self):
613613
Usage: ./manage.py routine import [OPTIONS] COMMAND [ARGS]...
614614
615615
Test Routine 1
616-
-----------------------------------
616+
----------------------------------
617617
618618
[0] track 2 | import, demo
619619
[1] track 0 (verbosity=0) | import
@@ -658,10 +658,9 @@ def test_helps_no_rich(self):
658658

659659
routine = get_command("routine", TyperCommand, stdout=stdout, no_color=True)
660660
routine.print_help("./manage.py", "routine", "import")
661-
self.assertEqual(
662-
stdout.getvalue().strip().replace("\x08", ""),
663-
self.routine_test_help_no_rich.strip(),
664-
)
661+
printed = stdout.getvalue().strip().replace("\x08", "")
662+
expected = self.routine_test_help_no_rich.strip()
663+
self.assertEqual(printed, expected)
665664

666665
def test_settings_format(self):
667666
routines = getattr(settings, ROUTINE_SETTING)

0 commit comments

Comments
 (0)