From 1821b5ed0d5342be1b7db7074d7c8876b0d433f1 Mon Sep 17 00:00:00 2001 From: Elias Dabbas Date: Tue, 31 Oct 2023 15:43:44 +0000 Subject: [PATCH] Use skipif to skip test on windows --- tests/test_header_spider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_header_spider.py b/tests/test_header_spider.py index 34d5a251..48c85387 100644 --- a/tests/test_header_spider.py +++ b/tests/test_header_spider.py @@ -11,6 +11,6 @@ def test_crawl_headers_raises_on_wrong_file_extension(): @pytest.mark.parametrize("column", ["url", "crawl_time", "status"]) +@pytest.mark.skipif(platform.system() == "Windows", reason="Skip if on Windows") def test_crawl_headers_returns_df(headers_crawl_df, column): - if platform.system() != "Windows": - assert column in headers_crawl_df + assert column in headers_crawl_df