Skip to content

Commit 2b8a5c6

Browse files
committed
Add unit tests
1 parent 4ee7cf8 commit 2b8a5c6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tests/integration/test_data_rows.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,14 @@ def test_data_row_iteration(dataset, image_url) -> None:
621621

622622

623623
def test_data_row_attachments(dataset, image_url):
624-
attachments = [("IMAGE", image_url, "attachment image"), ("TEXT", "test-text", None),
624+
attachments = [("IMAGE", image_url, "attachment image"),
625+
("TEXT", "test-text", None),
625626
("IMAGE_OVERLAY", image_url, "Overlay"), ("HTML", image_url)]
626627
task = dataset.create_data_rows([{
627-
"row_data": image_url,
628-
"external_id": "test-id",
628+
"row_data":
629+
image_url,
630+
"external_id":
631+
"test-id",
629632
"attachments": [{
630633
"type": attachment_type,
631634
"value": attachment_value,
@@ -653,8 +656,10 @@ def test_data_row_attachments(dataset, image_url):
653656

654657

655658
def test_create_data_rows_sync_attachments(dataset, image_url):
656-
attachments = [("IMAGE", image_url, "image URL"), ("TEXT", "test-text", None),
657-
("IMAGE_OVERLAY", image_url, "Overlay"), ("HTML", image_url, None)]
659+
attachments = [("IMAGE", image_url, "image URL"),
660+
("TEXT", "test-text", None),
661+
("IMAGE_OVERLAY", image_url, "Overlay"),
662+
("HTML", image_url, None)]
658663
attachments_per_data_row = 3
659664
dataset.create_data_rows_sync([{
660665
"row_data":

0 commit comments

Comments
 (0)