Skip to content

Commit 8c146e9

Browse files
committed
Adapt mock for changed pandas implementation
Adapt a mock for the changed implementation at pandas, see pandas-dev/pandas#34266. Closes #51.
1 parent d00b1f0 commit 8c146e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ def setUp(tmp_path_factory):
6868
@pytest.fixture
6969
def station():
7070
from fogtools.isd import dl_station
71-
with unittest.mock.patch("s3fs.S3FileSystem", autospec=True) as s3:
72-
s3.return_value.open.return_value = io.StringIO(csv_test_content)
71+
with unittest.mock.patch("fsspec.open", autospec=True) as fo:
72+
fo.return_value.open.return_value = io.StringIO(csv_test_content)
7373
return dl_station(2019, "94733099999")

0 commit comments

Comments
 (0)