(s3_server)
| 91 | |
| 92 | @pytest.fixture |
| 93 | def 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") |
nothing calls this directly
no test coverage detected