moved config settings to separate module.

This commit is contained in:
2022-06-18 21:24:11 -04:00
parent e79cf82b62
commit 217aea7a97
7 changed files with 240 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
"""Interpratures for server start features."""
from pytest_bdd import given, parsers, scenarios, then, when
from pytest_bdd import given, scenarios, then, when
scenarios("../features/server_start.feature")
@@ -10,10 +10,10 @@ def create_server():
"""Set up a server."""
@given(parsers.re(r"address is set to (?P<addr>\S+)"))
def set_server_address(server, addr):
"""Set the Server address."""
server.address = addr
@given("it is not using localhost")
def set_server_address(server):
"""Sets tthe server to not use localhost."""
server.set_to_host_ip()
@given("port is changed to something different")