diff --git a/test/helpers/stormlib_test_helper.py b/test/helpers/stormlib_test_helper.py index ed43561..b9bb726 100644 --- a/test/helpers/stormlib_test_helper.py +++ b/test/helpers/stormlib_test_helper.py @@ -1,5 +1,4 @@ import platform -from pathlib import PosixPath from test.chk_resources import ( LINUX_STORMLIB_X86_64, MACOS_STORMLIB_M1, @@ -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 diff --git a/test/mpq/stormlib/stormlib_helper_test.py b/test/mpq/stormlib/stormlib_helper_test.py index bf4a9c1..237740a 100644 --- a/test/mpq/stormlib/stormlib_helper_test.py +++ b/test/mpq/stormlib/stormlib_helper_test.py @@ -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: