Skip to content

Commit d1fbed0

Browse files
committed
try make tests run on windows
1 parent 357dfe5 commit d1fbed0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/test_core.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ def test_list(self, no_color=True):
347347
"[3] track 4 (demo=6, flag=True)",
348348
"[4] track 1",
349349
"[6] track 5 | demo",
350-
"[7] tests/system_cmd.py sys 1",
351-
"[8] tests/system_cmd.py sys 2",
350+
f"[7] tests{os.sep}system_cmd.py sys 1",
351+
f"[8] tests{os.sep}system_cmd.py sys 2",
352352
],
353353
)
354354

@@ -361,8 +361,8 @@ def test_list(self, no_color=True):
361361
"[3] track 3 (demo=2)",
362362
"[3] track 4 (demo=6, flag=True)",
363363
"[4] track 1",
364-
"[7] tests/system_cmd.py sys 1",
365-
"[8] tests/system_cmd.py sys 2",
364+
f"[7] tests{os.sep}system_cmd.py sys 1",
365+
f"[8] tests{os.sep}system_cmd.py sys 2",
366366
],
367367
)
368368

@@ -377,8 +377,8 @@ def test_list(self, no_color=True):
377377
"[3] track 4 (demo=6, flag=True)",
378378
"[4] track 1",
379379
"[6] track 5 | demo",
380-
"[7] tests/system_cmd.py sys 1",
381-
"[8] tests/system_cmd.py sys 2",
380+
f"[7] tests{os.sep}system_cmd.py sys 1",
381+
f"[8] tests{os.sep}system_cmd.py sys 2",
382382
],
383383
)
384384

@@ -394,8 +394,8 @@ def test_list(self, no_color=True):
394394
"[3] track 4 (demo=6, flag=True)",
395395
"[4] track 1",
396396
"[6] track 5 | demo",
397-
"[7] tests/system_cmd.py sys 1",
398-
"[8] tests/system_cmd.py sys 2",
397+
f"[7] tests{os.sep}system_cmd.py sys 1",
398+
f"[8] tests{os.sep}system_cmd.py sys 2",
399399
],
400400
)
401401

@@ -410,8 +410,8 @@ def test_list(self, no_color=True):
410410
"[3] track 3 (demo=2)",
411411
"[3] track 4 (demo=6, flag=True)",
412412
"[4] track 1",
413-
"[7] tests/system_cmd.py sys 1",
414-
"[8] tests/system_cmd.py sys 2",
413+
f"[7] tests{os.sep}system_cmd.py sys 1",
414+
f"[8] tests{os.sep}system_cmd.py sys 2",
415415
],
416416
)
417417

@@ -530,7 +530,7 @@ def test_subprocess(self):
530530
╰──────────────────────────────────────────────────────────────────────────────╯
531531
"""
532532

533-
routine_test_help_rich = """
533+
routine_test_help_rich = f"""
534534
Usage: ./manage.py routine import [OPTIONS] COMMAND [ARGS]...
535535
536536
@@ -543,8 +543,8 @@ def test_subprocess(self):
543543
[3] track 4 (demo=6, flag=True)
544544
[4] track 1
545545
[6] track 5 | demo
546-
[7] tests/system_cmd.py sys 1
547-
[8] tests/system_cmd.py sys 2
546+
[7] tests{os.sep}system_cmd.py sys 1
547+
[8] tests{os.sep}system_cmd.py sys 2
548548
549549
╭─ Options ────────────────────────────────────────────────────────────────────╮
550550
│ --subprocess Run commands as subprocesses. │
@@ -623,7 +623,7 @@ def test_helps_rich(self):
623623
test-continue Test continue option.
624624
"""
625625

626-
routine_test_help_no_rich = """
626+
routine_test_help_no_rich = f"""
627627
Usage: ./manage.py routine import [OPTIONS] COMMAND [ARGS]...
628628
629629
Test Routine 1
@@ -635,8 +635,8 @@ def test_helps_rich(self):
635635
[3] track 4 (demo=6, flag=True)
636636
[4] track 1
637637
[6] track 5 | demo
638-
[7] tests/system_cmd.py sys 1
639-
[8] tests/system_cmd.py sys 2
638+
[7] tests{os.sep}system_cmd.py sys 1
639+
[8] tests{os.sep}system_cmd.py sys 2
640640
641641
Options:
642642
--subprocess Run commands as subprocesses.

0 commit comments

Comments
 (0)