Skip to content

Commit b9f0ce4

Browse files
committed
add xdist upload group to pytest suite
1 parent dd4ae39 commit b9f0ce4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/func/test_datachain.py

+5
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,7 @@ def file_info(file: File) -> FileInfo:
16591659
assert len(all_dogs) == 2
16601660

16611661

1662+
@pytest.mark.xdist_group(name="upload")
16621663
def test_to_from_csv_remote(cloud_test_catalog_upload):
16631664
ctc = cloud_test_catalog_upload
16641665
path = f"{ctc.src_uri}/test.csv"
@@ -1672,6 +1673,7 @@ def test_to_from_csv_remote(cloud_test_catalog_upload):
16721673
assert df_equal(df1, df)
16731674

16741675

1676+
@pytest.mark.xdist_group(name="upload")
16751677
@pytest.mark.parametrize("chunk_size", (1000, 2))
16761678
@pytest.mark.parametrize("kwargs", ({}, {"compression": "gzip"}))
16771679
def test_to_from_parquet_remote(cloud_test_catalog_upload, chunk_size, kwargs):
@@ -1688,6 +1690,7 @@ def test_to_from_parquet_remote(cloud_test_catalog_upload, chunk_size, kwargs):
16881690
assert df_equal(df1, df)
16891691

16901692

1693+
@pytest.mark.xdist_group(name="upload")
16911694
def test_to_from_parquet_partitioned_remote(cloud_test_catalog_upload):
16921695
ctc = cloud_test_catalog_upload
16931696
path = f"{ctc.src_uri}/parquets"
@@ -1743,6 +1746,7 @@ def test_from_json_jmespath(tmp_dir, test_session):
17431746
assert df_equal(df1, df)
17441747

17451748

1749+
@pytest.mark.xdist_group(name="upload")
17461750
# These deprecation warnings occur in the datamodel-code-generator package.
17471751
@pytest.mark.filterwarnings("ignore::pydantic.warnings.PydanticDeprecatedSince20")
17481752
def test_to_from_json_remote(cloud_test_catalog_upload):
@@ -1759,6 +1763,7 @@ def test_to_from_json_remote(cloud_test_catalog_upload):
17591763
assert df_equal(df1, df)
17601764

17611765

1766+
@pytest.mark.xdist_group(name="upload")
17621767
# These deprecation warnings occur in the datamodel-code-generator package.
17631768
@pytest.mark.filterwarnings("ignore::pydantic.warnings.PydanticDeprecatedSince20")
17641769
def test_to_from_jsonl_remote(cloud_test_catalog_upload):

0 commit comments

Comments
 (0)