Skip to content

Commit

Permalink
Add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Dec 3, 2023
1 parent 6804fde commit 396ffee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions s3fs/tests/test_s3fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ def test_simple(s3):
assert out == data


def test_auto_anon(s3, monkeypatch):
monkeypatch.delenv("AWS_ACCESS_KEY_ID")
monkeypatch.delenv("AWS_SECRET_ACCESS_KEY")
monkeypatch.delenv("AWS_SESSION_TOKEN")

fs = S3FileSystem(skip_instance_cache=True, endpoint_url=endpoint_uri)
fs.s3
assert fs.anon


def test_with_size(s3):
data = b"a" * (10 * 2**20)

Expand Down

0 comments on commit 396ffee

Please sign in to comment.