Refactored test to allow address and port changed.

This commit is contained in:
2022-06-07 13:53:13 -04:00
parent 64042f0371
commit d92761ed70
2 changed files with 28 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ def start_server(server):
@when("the home page is accessed")
def access_home_page(server, page):
"""Access the home page."""
url = f"http://{server.settings['address']}:{server.settings['port']}/"
url = f"http://{server.address}:{server.port}/"
page.request_url(url)
@then("the status should be OK")