Refactored test to allow address and port changed.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user