Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/integration_test_90_features.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import datetime
import os
import pathlib
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -68,3 +70,18 @@ def test_features_mars_cds_adaptor_format(
_, actual_extension = os.path.splitext(result)
assert actual_extension == expected_extension
assert os.path.getsize(result)


def test_features_upload_big_file(
api_anon_client: ApiClient, tmp_path: pathlib.Path
) -> None:
# See: https://github.com/fsspec/s3fs/pull/910
target = str(tmp_path / "test.grib")
size = 1_048_576_000 + 1
api_anon_client.retrieve(
"test-adaptor-dummy",
size=size,
_timestamp=datetime.datetime.now().isoformat(),
target=target,
)
assert os.path.getsize(target) == size