From 7fdf81368325fd04f2e30f5c7adc30a6290e21e9 Mon Sep 17 00:00:00 2001 From: 100gle Date: Tue, 13 Jun 2023 23:52:11 +0800 Subject: [PATCH] ci: add skip mark for test case --- backend/src/test/test_torrent_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/test/test_torrent_parser.py b/backend/src/test/test_torrent_parser.py index 5d4e6cb7..cf0a3cd0 100644 --- a/backend/src/test/test_torrent_parser.py +++ b/backend/src/test/test_torrent_parser.py @@ -1,3 +1,6 @@ +import sys + +import pytest from module.parser.analyser import torrent_parser from module.parser.analyser.torrent_parser import get_path_basename @@ -80,5 +83,6 @@ class TestGetPathBasename: def test_path_with_trailing_slash(self): assert get_path_basename('/path/to/folder/') == 'folder' + @pytest.mark.skipif(not sys.platform.startswith("win"), reason="Windows specific") def test_windows_path(self): assert get_path_basename('C:\\path\\to\\file.txt') == 'file.txt'