Skip to content

Commit

Permalink
Less code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lotif committed Mar 7, 2024
1 parent e1dc190 commit 392d203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions florist/tests/integration/api/launchers/test_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
from florist.tests.utils.api.launch_utils import get_server


def find_string_in_file(file_path: str, search_string: str) -> bool:
def assert_string_in_file(file_path: str, search_string: str) -> bool:
with open(file_path, "r") as f:
file_contents = f.read()
match = re.search(search_string, file_contents)
return match is not None
assert match is not None


def test_launch() -> None:
Expand All @@ -39,4 +39,4 @@ def test_launch() -> None:
client_base_path,
)

assert find_string_in_file(f"{server_path}.out", "FL finished in")
assert_string_in_file(f"{server_path}.out", "FL finished in")

0 comments on commit 392d203

Please sign in to comment.