File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
ellar_cli/manage_commands Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1414 LIFESPAN ,
1515 LOG_LEVELS ,
1616 LOGGING_CONFIG ,
17- LOOP_SETUPS ,
17+ LOOP_FACTORIES ,
1818 SSL_PROTOCOL_VERSION ,
1919 WS_PROTOCOLS ,
2020)
3333WS_CHOICES = eClick .Choice (list (WS_PROTOCOLS .keys ()))
3434
3535LIFESPAN_CHOICES = eClick .Choice (list (LIFESPAN .keys ()))
36- LOOP_CHOICES = eClick .Choice ([key for key in LOOP_SETUPS .keys () if key != "none" ])
36+ LOOP_CHOICES = eClick .Choice ([key for key in LOOP_FACTORIES .keys () if key != "none" ])
3737INTERFACE_CHOICES = eClick .Choice (INTERFACES )
3838
3939
101101 "--loop" ,
102102 type = LOOP_CHOICES ,
103103 default = "auto" ,
104- help = "Event loop implementation." ,
104+ help = "Event loop factory implementation." ,
105105 show_default = True ,
106106)
107107@eClick .option (
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def invoke_without_app_context():
1919def test_app_group_is_of_type_application_context_group ():
2020 assert isinstance (app_group , AppContextGroup )
2121 assert len (app_group .commands ) == 1
22- assert "app-group " in app .commands
22+ assert "app" in app .commands
2323
2424
2525def test_invoke_without_app_context_fails (cli_runner ):
Original file line number Diff line number Diff line change 44output_1 = """Usage: args-print <arg1> [<arg2>] [OPTIONS]
55
66ARGUMENTS:
7- arg1: <arg1> Arg1 description [required]
8- arg2: [<arg2>] Arg2 description
7+ arg1: <arg1> Arg1 description [default: Sentinel.UNSET; required]
8+ arg2: [<arg2>] Arg2 description [default: Sentinel.UNSET]
99
1010[OPTIONS]:
1111 --help Show this message and exit.
1414output_2 = """Usage: args-print-no-description <arg1> [<arg2>] [OPTIONS]
1515
1616ARGUMENTS:
17- arg1: <arg1> [required]
18- arg2: [<arg2>]
17+ arg1: <arg1> [default: Sentinel.UNSET; required]
18+ arg2: [<arg2>] [default: Sentinel.UNSET]
1919
2020[OPTIONS]:
2121 --help Show this message and exit.
You can’t perform that action at this time.
0 commit comments