@@ -74,7 +74,7 @@ def test_command(self, no_color=True, verbosity=None, subprocess=False):
74
74
* (["--manage-script" , "./manage.py" ] if subprocess else []),
75
75
("--no-color" if no_color else "--force-color" ),
76
76
* (("--verbosity" , str (verbosity )) if verbosity is not None else tuple ()),
77
- "test " ,
77
+ "import " ,
78
78
]
79
79
if subprocess :
80
80
command .append ("--subprocess" )
@@ -217,7 +217,7 @@ def test_command(self, no_color=True, verbosity=None, subprocess=False):
217
217
track_file .write_text (json .dumps (clear_results ))
218
218
219
219
out = StringIO ()
220
- call_command (* command , "--demo" , "--initial " , stdout = out )
220
+ call_command (* command , "--demo" , "--import " , stdout = out )
221
221
expected = [2 , 0 , 3 , 4 , 1 , 5 ]
222
222
if verbosity is None or verbosity > 0 :
223
223
for line , exp in zip (
@@ -267,7 +267,7 @@ def test_command(self, no_color=True, verbosity=None, subprocess=False):
267
267
track_file .write_text (json .dumps (clear_results ))
268
268
269
269
out = StringIO ()
270
- call_command (* command , "--initial " , stdout = out )
270
+ call_command (* command , "--import " , stdout = out )
271
271
expected = [2 , 0 , 3 , 4 , 1 ]
272
272
if verbosity is None or verbosity > 0 :
273
273
for line , exp in zip (
@@ -327,18 +327,18 @@ def test_verbosity(self):
327
327
328
328
def test_list (self , no_color = True ):
329
329
if no_color :
330
- command = ("routine" , "--no-color" , "test " )
330
+ command = ("routine" , "--no-color" , "import " )
331
331
else :
332
- command = ("routine" , "--force-color" , "test " )
332
+ command = ("routine" , "--force-color" , "import " )
333
333
334
334
out = StringIO ()
335
335
call_command (* command , "--all" , "list" , stdout = out )
336
336
plan = self .lines (out .getvalue (), no_color = no_color )
337
337
self .assertEqual (
338
338
plan ,
339
339
[
340
- "[0] track 2 | initial , demo" ,
341
- "[1] track 0 (verbosity=0) | initial " ,
340
+ "[0] track 2 | import , demo" ,
341
+ "[1] track 0 (verbosity=0) | import " ,
342
342
"[3] track 3 (demo=2)" ,
343
343
"[3] track 4 (demo=6, flag=True)" ,
344
344
"[4] track 1" ,
@@ -368,7 +368,7 @@ def test_list(self, no_color=True):
368
368
self .assertEqual (
369
369
plan ,
370
370
[
371
- "[0] track 2 | initial , demo" ,
371
+ "[0] track 2 | import , demo" ,
372
372
"[3] track 3 (demo=2)" ,
373
373
"[3] track 4 (demo=6, flag=True)" ,
374
374
"[4] track 1" ,
@@ -379,13 +379,13 @@ def test_list(self, no_color=True):
379
379
)
380
380
381
381
out = StringIO ()
382
- call_command (* command , "--demo" , "--initial " , "list" , stdout = out )
382
+ call_command (* command , "--demo" , "--import " , "list" , stdout = out )
383
383
plan = self .lines (out .getvalue (), no_color = no_color )
384
384
self .assertEqual (
385
385
plan ,
386
386
[
387
- "[0] track 2 | initial , demo" ,
388
- "[1] track 0 (verbosity=0) | initial " ,
387
+ "[0] track 2 | import , demo" ,
388
+ "[1] track 0 (verbosity=0) | import " ,
389
389
"[3] track 3 (demo=2)" ,
390
390
"[3] track 4 (demo=6, flag=True)" ,
391
391
"[4] track 1" ,
@@ -396,13 +396,13 @@ def test_list(self, no_color=True):
396
396
)
397
397
398
398
out = StringIO ()
399
- call_command (* command , "--initial " , "list" , stdout = out )
399
+ call_command (* command , "--import " , "list" , stdout = out )
400
400
plan = self .lines (out .getvalue (), no_color = no_color )
401
401
self .assertEqual (
402
402
plan ,
403
403
[
404
- "[0] track 2 | initial , demo" ,
405
- "[1] track 0 (verbosity=0) | initial " ,
404
+ "[0] track 2 | import , demo" ,
405
+ "[1] track 0 (verbosity=0) | import " ,
406
406
"[3] track 3 (demo=2)" ,
407
407
"[3] track 4 (demo=6, flag=True)" ,
408
408
"[4] track 1" ,
@@ -517,20 +517,20 @@ def test_subprocess(self):
517
517
╭─ Commands ───────────────────────────────────────────────────────────────────╮
518
518
│ bad Bad command test routine │
519
519
│ deploy Deploy the site application into production. │
520
- │ test Test Routine 1 │
520
+ │ import Test Routine 1 │
521
521
│ test-hyphen Test that hyphens dont mess everything up. │
522
522
╰──────────────────────────────────────────────────────────────────────────────╯
523
523
"""
524
524
525
525
routine_test_help_rich = """
526
- Usage: ./manage.py routine test [OPTIONS] COMMAND [ARGS]...
526
+ Usage: ./manage.py routine import [OPTIONS] COMMAND [ARGS]...
527
527
528
528
529
529
Test Routine 1
530
530
531
531
532
- [0] track 2 | initial , demo
533
- [1] track 0 (verbosity=0) | initial
532
+ [0] track 2 | import , demo
533
+ [1] track 0 (verbosity=0) | import
534
534
[3] track 3 (demo=2)
535
535
[3] track 4 (demo=6, flag=True)
536
536
[4] track 1
@@ -542,7 +542,7 @@ def test_subprocess(self):
542
542
│ --subprocess Run commands as subprocesses. │
543
543
│ --all Include all switched commands. │
544
544
│ --demo │
545
- │ --initial │
545
+ │ --import │
546
546
│ --help Show this message and exit. │
547
547
╰──────────────────────────────────────────────────────────────────────────────╯
548
548
╭─ Commands ───────────────────────────────────────────────────────────────────╮
@@ -572,7 +572,7 @@ def test_helps_rich(self):
572
572
stdout = StringIO ()
573
573
574
574
routine = get_command ("routine" , TyperCommand , stdout = stdout , no_color = True )
575
- routine .print_help ("./manage.py" , "routine" , "test " )
575
+ routine .print_help ("./manage.py" , "routine" , "import " )
576
576
self .assertEqual (
577
577
self .strip_ansi (stdout .getvalue ()).strip ().replace ("\x08 " , "" ),
578
578
self .routine_test_help_rich .strip (),
@@ -605,18 +605,18 @@ def test_helps_rich(self):
605
605
Commands:
606
606
bad Bad command test routine
607
607
deploy Deploy the site application into production.
608
- test Test Routine 1
608
+ import Test Routine 1
609
609
test-hyphen Test that hyphens dont mess everything up.
610
610
"""
611
611
612
612
routine_test_help_no_rich = """
613
- Usage: ./manage.py routine test [OPTIONS] COMMAND [ARGS]...
613
+ Usage: ./manage.py routine import [OPTIONS] COMMAND [ARGS]...
614
614
615
615
Test Routine 1
616
616
-----------------------------------
617
617
618
- [0] track 2 | initial , demo
619
- [1] track 0 (verbosity=0) | initial
618
+ [0] track 2 | import , demo
619
+ [1] track 0 (verbosity=0) | import
620
620
[3] track 3 (demo=2)
621
621
[3] track 4 (demo=6, flag=True)
622
622
[4] track 1
@@ -628,7 +628,7 @@ def test_helps_rich(self):
628
628
--subprocess Run commands as subprocesses.
629
629
--all Include all switched commands.
630
630
--demo
631
- --initial
631
+ --import
632
632
--help Show this message and exit.
633
633
634
634
Commands:
@@ -657,7 +657,7 @@ def test_helps_no_rich(self):
657
657
stdout = StringIO ()
658
658
659
659
routine = get_command ("routine" , TyperCommand , stdout = stdout , no_color = True )
660
- routine .print_help ("./manage.py" , "routine" , "test " )
660
+ routine .print_help ("./manage.py" , "routine" , "import " )
661
661
self .assertEqual (
662
662
stdout .getvalue ().strip ().replace ("\x08 " , "" ),
663
663
self .routine_test_help_no_rich .strip (),
@@ -734,7 +734,7 @@ def test_settings_format(self):
734
734
"kind" : "management" ,
735
735
"options" : {},
736
736
"priority" : 0 ,
737
- "switches" : ("initial " ,),
737
+ "switches" : ("import " ,),
738
738
},
739
739
{
740
740
"command" : ("loaddata" , "./fixtures/initial_data.json" ),
@@ -754,22 +754,22 @@ def test_settings_format(self):
754
754
},
755
755
)
756
756
self .assertEqual (
757
- routines ["test " ],
757
+ routines ["import " ],
758
758
{
759
759
"commands" : [
760
760
{
761
761
"command" : ("track" , "2" ),
762
762
"kind" : "management" ,
763
763
"options" : {},
764
764
"priority" : 0 ,
765
- "switches" : ("initial " , "demo" ),
765
+ "switches" : ("import " , "demo" ),
766
766
},
767
767
{
768
768
"command" : ("track" , "0" ),
769
769
"kind" : "management" ,
770
770
"options" : {"verbosity" : 0 },
771
771
"priority" : 1 ,
772
- "switches" : ("initial " ,),
772
+ "switches" : ("import " ,),
773
773
},
774
774
{
775
775
"command" : ("track" , "3" ),
@@ -813,7 +813,7 @@ def test_settings_format(self):
813
813
},
814
814
],
815
815
"help_text" : "Test Routine 1" ,
816
- "name" : "test " ,
816
+ "name" : "import " ,
817
817
"switch_helps" : {},
818
818
"subprocess" : False ,
819
819
},
0 commit comments