From 10bc796e7274c0d51843d27070b99f0a33aa8c47 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 18:22:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_storage.py b/tests/test_storage.py index 90ce908b2..88dc89f0b 100644 --- a/tests/test_storage.py +++ b/tests/test_storage.py @@ -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"