Skip to content

Commit 19f3cbf

Browse files
committed
fixed failing tests
1 parent 1436a50 commit 19f3cbf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ellar_cli/manage_commands/runserver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
LIFESPAN,
1515
LOG_LEVELS,
1616
LOGGING_CONFIG,
17-
LOOP_SETUPS,
17+
LOOP_FACTORIES,
1818
SSL_PROTOCOL_VERSION,
1919
WS_PROTOCOLS,
2020
)
@@ -33,7 +33,7 @@
3333
WS_CHOICES = eClick.Choice(list(WS_PROTOCOLS.keys()))
3434

3535
LIFESPAN_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"])
3737
INTERFACE_CHOICES = eClick.Choice(INTERFACES)
3838

3939

@@ -101,7 +101,7 @@
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(

tests/click/test_app_context_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def invoke_without_app_context():
1919
def 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

2525
def test_invoke_without_app_context_fails(cli_runner):

tests/click/test_command_args_printing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
output_1 = """Usage: args-print <arg1> [<arg2>] [OPTIONS]
55
66
ARGUMENTS:
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.
@@ -14,8 +14,8 @@
1414
output_2 = """Usage: args-print-no-description <arg1> [<arg2>] [OPTIONS]
1515
1616
ARGUMENTS:
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.

0 commit comments

Comments
 (0)