Skip to content

Commit eeb6744

Browse files
uses new reload method in webapp subcommand.
1 parent dce0321 commit eeb6744

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/webapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def create(
3939
project.create_webapp(nuke=nuke)
4040
project.add_static_file_mappings()
4141
typer.echo(snakesay(f"Reloading {domain_name} via API"))
42-
project.webapp.reload()
42+
project.reload_webapp()
4343

4444
typer.echo(
4545
snakesay(

tests/test_cli_webapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_create_calls_all_stuff_in_right_order(mocker):
6969
call.virtualenv.create(nuke=True),
7070
call.create_webapp(nuke=True),
7171
call.add_static_file_mappings(),
72-
call.webapp.reload(),
72+
call.reload_webapp(),
7373
]
7474
assert "All done! Your site is now live at https://www.domain.com" in result.stdout
7575
assert (

0 commit comments

Comments
 (0)