Skip to content

Commit

Permalink
fix: update the test via fsspec test
Browse files Browse the repository at this point in the history
  • Loading branch information
john-jam committed Aug 16, 2023
1 parent 27a4085 commit 39109a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions s3fs/tests/test_s3fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2071,9 +2071,13 @@ def test_via_fsspec(s3):
import fsspec

s3.mkdir("mine")
with fsspec.open("mine/oi", "wb") as f:
with fsspec.open(
"s3://mine/oi", "wb", client_kwargs={"endpoint_url": endpoint_uri}
) as f:
f.write(b"hello")
with fsspec.open("mine/oi", "rb") as f:
with fsspec.open(
"s3://mine/oi", "rb", client_kwargs={"endpoint_url": endpoint_uri}
) as f:
assert f.read() == b"hello"


Expand Down

0 comments on commit 39109a7

Please sign in to comment.