From 96364aacc04d402ce8add0257792cb004f054171 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Sat, 24 Oct 2020 23:42:38 +0300 Subject: [PATCH] squash --- tests/test_load_module_from_file_location.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_load_module_from_file_location.py b/tests/test_load_module_from_file_location.py index 015ad256..5dc42d5c 100644 --- a/tests/test_load_module_from_file_location.py +++ b/tests/test_load_module_from_file_location.py @@ -21,7 +21,10 @@ def test_load_module_from_file_location(loaded_module_from_file_location): @pytest.mark.dependency(depends=["test_load_module_from_file_location"]) def test_loaded_module_from_file_location_name(loaded_module_from_file_location,): - assert loaded_module_from_file_location.__name__ == "app_test_config" + name = loaded_module_from_file_location.__name__ + if "C:\\" in name: + name = name.split("\\")[-1] + assert name == "app_test_config" def test_load_module_from_file_location_with_non_existing_env_variable():