Skip to content

Commit

Permalink
test with compression
Browse files Browse the repository at this point in the history
  • Loading branch information
farizrahman4u committed Oct 13, 2021
1 parent db19162 commit 40d632c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hub/api/tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def test_json_with_schema(memory_ds):


@enabled_non_gcs_datasets
def test_json_transform(ds, scheduler="threaded"):
ds.create_tensor("json", htype="json")
@pytest.mark.parametrize("compression", ["lz4", None])
def test_json_transform(ds, compression, scheduler="threaded"):
ds.create_tensor("json", htype="json", sample_compression=compression)

items = [
{"x": [1, 2, 3], "y": [4, [5, 6]]},
Expand All @@ -180,7 +181,8 @@ def upload(stuff, ds):


@enabled_non_gcs_datasets
def test_list_transform(ds, scheduler="threaded"):
@pytest.mark.parametrize("compression", ["lz4", None])
def test_list_transform(ds, compression, scheduler="threaded"):
ds.create_tensor("list", htype="list")

items = [
Expand Down

0 comments on commit 40d632c

Please sign in to comment.