Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/hash-file-contents #60

Merged
merged 5 commits into from
Jun 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update gcsfs test mocks after dep update
  • Loading branch information
JacksonMaxfield committed Jun 5, 2021
commit 9141ba1f8536981ef731462c79eb9ede4c6e9d8e
4 changes: 2 additions & 2 deletions cdp_backend/tests/file_store/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


def test_initialize_gcs_file_system() -> None:
with mock.patch("gcsfs.GCSFileSystem.connect"):
with mock.patch("gcsfs.credentials.GoogleCredentials.connect"):
assert isinstance(
functions.initialize_gcs_file_system("path/to/credentials"), GCSFileSystem
)
Expand All @@ -48,7 +48,7 @@ def test_get_file_uri(
exists: bool,
expected: Optional[str],
) -> None:
with mock.patch("gcsfs.GCSFileSystem.connect"):
with mock.patch("gcsfs.credentials.GoogleCredentials.connect"):
with mock.patch("gcsfs.GCSFileSystem.exists") as mock_exists:
mock_exists.return_value = exists

Expand Down