Skip to content

Commit

Permalink
Add a test for init process
Browse files Browse the repository at this point in the history
  • Loading branch information
k5342 committed Aug 27, 2024
1 parent 2fc5a20 commit b38ca64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/v2_tests/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ def test_s3_files(s3_fixture):
assert not s3.isdir("/bas")


def test_s3_init_with_timeouts(s3_fixture):
with from_url('s3://test-bucket/base',
connect_timeout=300,
read_timeout=120) as s3:
assert isinstance(s3, S3)
assert (s3.botocore_config['connect_timeout'] == 300)
assert (s3.botocore_config['read_timeout'] == 120)


# TODO: Find out a way to know buffer size used in a BufferedReader
@pytest.mark.parametrize("buffering, reader_type",
[(-1, io.BufferedReader),
Expand Down

0 comments on commit b38ca64

Please sign in to comment.