diff --git a/tests/test_storage.py b/tests/test_storage.py index cd61c7518..b621d8f88 100644 --- a/tests/test_storage.py +++ b/tests/test_storage.py @@ -102,9 +102,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"