Test for changing address.

This commit is contained in:
Jeff Baskin 2022-06-19 08:51:32 -04:00
parent 72df9189a6
commit b5f5cbdbbe
2 changed files with 13 additions and 0 deletions

View File

@ -22,3 +22,10 @@ Feature: Server Start
And it is running And it is running
When the home page is accessed When the home page is accessed
Then the status should be OK Then the status should be OK
Scenario: Start using the server on an alternate address
Given a server
And the address is changed
And it is running
When the home page is accessed
Then the status should be OK

View File

@ -22,6 +22,12 @@ def set_to_safe_port(server):
server.set_safe_port() server.set_safe_port()
@given("the address is changed")
def set_to_host_address(server):
"""Sets the server to the host address."""
server.set_to_host_ip()
@given("it is running") @given("it is running")
def start_server(server): def start_server(server):
"""Start up the server.""" """Start up the server."""