MCPcopy Create free account
hub / github.com/apache/arrow / s3_example_fs

Function s3_example_fs

python/pyarrow/tests/parquet/conftest.py:93–105  ·  view source on GitHub ↗
(s3_server)

Source from the content-addressed store, hash-verified

91
92@pytest.fixture
93def s3_example_fs(s3_server):
94 from pyarrow.fs import FileSystem
95
96 host, port, access_key, secret_key = s3_server['connection']
97 uri = (
98 f"s3://{access_key}:{secret_key}@mybucket/data.parquet?scheme=http"
99 f"&endpoint_override={host}:{port}&allow_bucket_creation=True"
100 )
101 fs, path = FileSystem.from_uri(uri)
102
103 fs.create_dir("mybucket")
104
105 yield fs, uri, path
106
107
108@pytest.fixture(scope="class")

Callers

nothing calls this directly

Calls 1

create_dirMethod · 0.45

Tested by

no test coverage detected