From 52293ba948c1b86ecde4efc413b16b7201a293dc Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Wed, 24 Dec 2025 15:56:33 +0000 Subject: [PATCH] Normalise expected paths in windows tests --- tests/unit_tests/test_config_utilities.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/unit_tests/test_config_utilities.py b/tests/unit_tests/test_config_utilities.py index 1d0aa408..cd72b7d0 100644 --- a/tests/unit_tests/test_config_utilities.py +++ b/tests/unit_tests/test_config_utilities.py @@ -53,13 +53,15 @@ def test_merge_patch(target, patch, outcome, err_if_enforce): @pytest.mark.parametrize( ("base_conf", "resolves_to"), [ - ("/var/base.json", "/var/base.json"), - ("base.json", "/var/openflexure/settings/base.json"), - ("./base.json", "/var/openflexure/settings/base.json"), - ("../base.json", "/var/openflexure/base.json"), + ("/var/base.json", os.path.normpath("/var/base.json")), + ("base.json", os.path.normpath("/var/openflexure/settings/base.json")), + ("./base.json", os.path.normpath("/var/openflexure/settings/base.json")), + ("../base.json", os.path.normpath("/var/openflexure/base.json")), ( "$OFM_LIB/base.json", - "/var/openflexure/application/openflexure-microscope-server/base.json", + os.path.normpath( + "/var/openflexure/application/openflexure-microscope-server/base.json" + ), ), ], )