Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 11, 2023
1 parent 88f06d9 commit ff9cb16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def kill_process(process: subprocess.Popen) -> None:
except ProcessLookupError:
pass


def get_network_host():
hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
Expand All @@ -45,6 +46,7 @@ def get_network_host():
else:
return "0.0.0.0"


def start_server(domain: str, port: int, is_dev: bool = False) -> subprocess.Popen:
"""
Call this method to wait for the server to start
Expand Down
3 changes: 2 additions & 1 deletion integration_tests/test_base_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import requests
import platform


def get_network_host():
hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
Expand All @@ -13,7 +14,7 @@ def get_network_host():
return ip_address
else:
return "0.0.0.0"


def test_default_url_index_request(default_session):
BASE_URL = "http://127.0.0.1:8080"
Expand Down

0 comments on commit ff9cb16

Please sign in to comment.