Skip to content

Commit 0c441c8

Browse files
author
Val Brodsky
committed
Temporarily skip create_data_rows_sync tests
This method is not supported by ADV
1 parent 6ae6594 commit 0c441c8

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

tests/integration/test_data_rows.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -409,13 +409,16 @@ def test_create_data_rows_with_metadata(mdo, dataset, image_url):
409409
assert mdo._parse_upsert(m)
410410

411411

412-
@pytest.mark.parametrize("test_function,metadata_obj_type",
413-
[("create_data_rows", "class"),
414-
("create_data_rows", "dict"),
415-
("create_data_rows_sync", "class"),
416-
("create_data_rows_sync", "dict"),
417-
("create_data_row", "class"),
418-
("create_data_row", "dict")])
412+
@pytest.mark.parametrize(
413+
"test_function,metadata_obj_type",
414+
[
415+
("create_data_rows", "class"),
416+
("create_data_rows", "dict"),
417+
# ("create_data_rows_sync", "class"),
418+
# ("create_data_rows_sync", "dict"),
419+
("create_data_row", "class"),
420+
("create_data_row", "dict")
421+
])
419422
def test_create_data_rows_with_named_metadata_field_class(
420423
test_function, metadata_obj_type, mdo, dataset, image_url):
421424

@@ -459,7 +462,7 @@ def create_data_row(data_rows):
459462

460463
CREATION_FUNCTION = {
461464
"create_data_rows": dataset.create_data_rows,
462-
"create_data_rows_sync": dataset.create_data_rows_sync,
465+
# "create_data_rows_sync": dataset.create_data_rows_sync,
463466
"create_data_row": create_data_row
464467
}
465468
data_rows = [METADATA_FIELDS[metadata_obj_type]]
@@ -690,6 +693,7 @@ def test_data_row_attachments(dataset, image_url):
690693
}])
691694

692695

696+
@pytest.mark.skip(reason="create_data_rows_sync not supported by ADV yet")
693697
def test_create_data_rows_sync_attachments(dataset, image_url):
694698
attachments = [("IMAGE", image_url, "image URL"),
695699
("RAW_TEXT", "test-text", None),
@@ -713,6 +717,7 @@ def test_create_data_rows_sync_attachments(dataset, image_url):
713717
assert len(list(data_row.attachments())) == attachments_per_data_row
714718

715719

720+
@pytest.mark.skip(reason="create_data_rows_sync not supported by ADV yet")
716721
def test_create_data_rows_sync_mixed_upload(dataset, image_url):
717722
n_local = 100
718723
n_urls = 100
@@ -908,6 +913,7 @@ def test_data_row_delete_and_create_with_same_global_key(
908913
assert task.result[0]['global_key'] == global_key_1
909914

910915

916+
@pytest.mark.skip(reason="create_data_rows_sync not supported by ADV yet")
911917
def test_data_row_bulk_creation_sync_with_unique_global_keys(
912918
dataset, sample_image):
913919
global_key_1 = str(uuid.uuid4())
@@ -933,6 +939,7 @@ def test_data_row_bulk_creation_sync_with_unique_global_keys(
933939
} == {global_key_1, global_key_2, global_key_3}
934940

935941

942+
@pytest.mark.skip(reason="create_data_rows_sync not supported by ADV yet")
936943
def test_data_row_bulk_creation_sync_with_same_global_keys(
937944
dataset, sample_image, is_adv_enabled):
938945
global_key_1 = str(uuid.uuid4())
@@ -964,7 +971,8 @@ def test_data_row_bulk_creation_sync_with_same_global_keys(
964971
assert list(dataset.data_rows())[0].global_key == global_key_1
965972

966973

967-
def test_create_conversational_text(dataset, conversational_content):
974+
@pytest.mark.skip(reason="create_data_rows_sync not supported by ADV yet")
975+
def test_create_conversational_text(client, dataset, conversational_content):
968976
examples = [
969977
{
970978
**conversational_content, 'media_type':
@@ -983,6 +991,7 @@ def test_create_conversational_text(dataset, conversational_content):
983991
data_row.row_data).json() == conversational_content['row_data']
984992

985993

994+
@pytest.mark.skip(reason="create_data_rows_sync not supported by ADV yet")
986995
def test_invalid_media_type(dataset, conversational_content, is_adv_enabled):
987996
for error_message, invalid_media_type in [[
988997
"Found invalid contents for media type: 'IMAGE'", 'IMAGE'
@@ -1005,6 +1014,7 @@ def test_invalid_media_type(dataset, conversational_content, is_adv_enabled):
10051014
assert task.errors == {'message': error_message}
10061015

10071016

1017+
@pytest.mark.skip(reason="create_data_rows_sync not supported by ADV yet")
10081018
def test_create_tiled_layer(dataset, tile_content):
10091019
examples = [
10101020
{

0 commit comments

Comments
 (0)