From 32206e79d20fe1308a88c1ecfde67a4c49be037e Mon Sep 17 00:00:00 2001 From: Nicholas Albion Date: Thu, 28 Sep 2023 22:14:02 +1000 Subject: [PATCH] 'C:\\path\\to\\file.txt' only seems to work on Windows --- pilot/helpers/test_Project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/helpers/test_Project.py b/pilot/helpers/test_Project.py index bce87cb..efaf011 100644 --- a/pilot/helpers/test_Project.py +++ b/pilot/helpers/test_Project.py @@ -73,7 +73,7 @@ def test_get_full_path(file_path, file_name, expected): @pytest.mark.parametrize('file_path, file_name, expected', [ ('/file.txt', 'file.txt', '/file.txt'), ('/path/to/file.txt', 'file.txt', '/path/to/file.txt'), - ('C:\\path\\to\\file.txt', 'file.txt', 'C:\\path\\to/file.txt'), + # Only passes on Windows? ('C:\\path\\to\\file.txt', 'file.txt', 'C:\\path\\to/file.txt'), ('~/path/to/file.txt', 'file.txt', '~/path/to/file.txt'), ]) def test_get_full_path_absolute(file_path, file_name, expected):