Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ def sdk_wheel_path(tmp_path_factory: pytest.TempPathFactory, testrun_uid: str) -
was_wheel_built_this_test_run_file = tmp_path_factory.getbasetemp() / f'wheel_was_built_in_run_{testrun_uid}'
if not was_wheel_built_this_test_run_file.exists():
subprocess.run(
args='python -m build',
args=[sys.executable, '-m', 'build'],
cwd=_SDK_ROOT_PATH,
shell=True,
check=True,
capture_output=True,
)
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/storage_clients/test_api_client_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def request_handler(request: Request, response: Response) -> Response:
request_handler
).respond_with_json({'data': {}}, status=201)

items = [{'hello': 'world'}, {'answer': 42}]
# The client leaves bodies under 1 KiB uncompressed, so the payload has to be large enough to cross that
# threshold for `Content-Encoding` to be set at all.
items = [{'index': i, 'payload': 'x' * 100} for i in range(20)]
await client.dataset(dataset_id='test-dataset').push_items(items)

assert captured['content_encoding'] == 'br'
Expand Down
Loading
Loading