Skip to content

Commit

Permalink
Virtual refs fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 10, 2024
1 parent 1ae2e8a commit 3c3532f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 0 additions & 2 deletions icechunk-python/tests/test_virtual_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ async def test_write_minino_virtual_refs():


async def test_from_s3_public_virtual_refs(tmpdir):
buffer_prototype = zarr.core.buffer.default_buffer_prototype()

# Open the store,
store = await IcechunkStore.open(
storage=StorageConfig.filesystem(f'{tmpdir}/virtual'),
Expand Down
13 changes: 10 additions & 3 deletions icechunk/tests/test_virtual_refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ mod tests {
}
}

async fn create_repository(storage: Arc<dyn Storage + Send + Sync>, virtual_s3_config: S3Config) -> Repository {
async fn create_repository(
storage: Arc<dyn Storage + Send + Sync>,
virtual_s3_config: S3Config,
) -> Repository {
Repository::init(storage, true)
.await
.expect("building repository failed")
Expand Down Expand Up @@ -76,7 +79,10 @@ mod tests {
.expect(&format!("putting chunk to {} failed", &path));
}
}
async fn create_local_repository(path: &StdPath, virtual_s3_config: S3Config) -> Repository {
async fn create_local_repository(
path: &StdPath,
virtual_s3_config: S3Config,
) -> Repository {
let storage: Arc<dyn Storage + Send + Sync> = Arc::new(
ObjectStorage::new_local_store(path).expect("Creating local storage failed"),
);
Expand Down Expand Up @@ -403,7 +409,8 @@ mod tests {
}

#[tokio::test]
async fn test_zarr_store_virtual_refs_from_public_s3() -> Result<(), Box<dyn std::error::Error>> {
async fn test_zarr_store_virtual_refs_from_public_s3(
) -> Result<(), Box<dyn std::error::Error>> {
let repo_dir = TempDir::new()?;
let ds = create_local_repository(repo_dir.path(), anon_s3_config()).await;

Expand Down

0 comments on commit 3c3532f

Please sign in to comment.