Skip to content

Commit

Permalink
try making paths strings directly
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmachine committed Oct 20, 2024
1 parent 47f3259 commit 13ca199
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions test/helpers/stormlib_test_helper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import platform
from pathlib import PosixPath
from test.chk_resources import (
LINUX_STORMLIB_X86_64,
MACOS_STORMLIB_M1,
Expand Down Expand Up @@ -44,10 +43,10 @@ def _first_true(iterable, default=False, predicate=None):


def _get_embedded_stormlib_path() -> Optional[str]:
possible_stormlibs: tuple[tuple[bool, PosixPath], ...] = (
(run_test_if_mac_m1(), MACOS_STORMLIB_M1),
(run_test_if_linux_x86_64(), LINUX_STORMLIB_X86_64),
(run_test_if_windows(), WINDOWS_STORMLIB),
possible_stormlibs: tuple[tuple[bool, str], ...] = (
(run_test_if_mac_m1(), str(MACOS_STORMLIB_M1)),
(run_test_if_linux_x86_64(), str(LINUX_STORMLIB_X86_64)),
(run_test_if_windows(), str(WINDOWS_STORMLIB)),
)
maybe_embedded_stormlib = _first_true(
possible_stormlibs, default=None, predicate=lambda x: x[0] is True
Expand Down
2 changes: 1 addition & 1 deletion test/mpq/stormlib/stormlib_helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_it_create_stormlib_wrapper_from_embedded_dll():


@pytest.mark.usefixtures("embedded_stormlib_path")
def test_it_create_stormlib_wrapper_from_provided_dll(
def test_it_creates_stormlib_wrapper_from_provided_dll(
embedded_stormlib_path,
):
if embedded_stormlib_path:
Expand Down

0 comments on commit 13ca199

Please sign in to comment.