Skip to content

Commit 23caf89

Browse files
committed
Skip mandates CSV tests for Windows
1 parent 62edd5b commit 23caf89

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test_module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ def test_pubs_custom_url(self):
650650
self.assertEqual(pub['bib']['pub_year'], '2009')
651651
self.assertGreaterEqual(pub['num_citations'], 581)
652652

653+
@unittest.skipIf(sys.platform.startswith("win"), reason="File read is empty in Windows")
653654
def test_download_mandates_csv(self):
654655
"""
655656
Test that we can download the mandates CSV and read it.
@@ -691,6 +692,7 @@ def test_download_mandates_csv(self):
691692
# The percentage fluctuates, so we can't check the exact value.
692693
self.assertAlmostEqual(int(percentage2020[agency_index][:-1]), int(agency_2020[agency][:-1]), delta=2)
693694

695+
@unittest.skipIf(sys.platform.startswith("win"), reason="File read is empty in Windows")
694696
@unittest.skipIf(pd is None, reason="pandas is not installed")
695697
def test_download_mandates_csv_with_pandas(self):
696698
"""

0 commit comments

Comments
 (0)