mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-01 17:09:59 +01:00
'C:\\path\\to\\file.txt' only seems to work on Windows
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user