Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 18, 2024
1 parent cf47e41 commit 10bc796
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def test_suffix(tmp_path):
@pytest.mark.parametrize("fs_cls", [LocalFileSystem, HTTPFileSystem, S3FileSystem, GCSFileSystem])
def test_target_storage_get_remote_protocol(fs_cls, monkeypatch):
# we need to use patch here for s3fs and gcsfs b/c they try to do so much on __init__
monkeypatch.setattr('s3fs.S3FileSystem.__init__', lambda x: None)
monkeypatch.setattr('gcsfs.GCSFileSystem.__init__', lambda x: None)
monkeypatch.setattr('pangeo_forge_recipes.storage.FSSpecTarget.__post_init__', lambda x: None)
monkeypatch.setattr("s3fs.S3FileSystem.__init__", lambda x: None)
monkeypatch.setattr("gcsfs.GCSFileSystem.__init__", lambda x: None)
monkeypatch.setattr("pangeo_forge_recipes.storage.FSSpecTarget.__post_init__", lambda x: None)
target_root = FSSpecTarget(fs_cls())
if isinstance(target_root, LocalFileSystem):
assert target_root.fs.get_fsspec_remote_protocol() == "local"
Expand Down

0 comments on commit 10bc796

Please sign in to comment.