Skip to content

Commit 57da848

Browse files
author
Val Brodsky
committed
Address test issues
1 parent 48f3c26 commit 57da848

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

tests/integration/annotation_import/test_ndjson_validation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from labelbox.schema.media_type import MediaType
12
import pytest
23

34
from labelbox import parser
@@ -25,8 +26,11 @@ def get_data_row_id(indx=0):
2526

2627
@pytest.fixture(scope="module", autouse=True)
2728
def configured_project_with_ontology(client, ontology, rand_gen):
28-
project = client.create_project(name=rand_gen(str),
29-
queue_mode=QueueMode.Batch)
29+
project = client.create_project(
30+
name=rand_gen(str),
31+
queue_mode=QueueMode.Batch,
32+
media_type=MediaType.Image,
33+
)
3034
editor = list(
3135
client.get_labeling_frontends(
3236
where=LabelingFrontend.name == "editor"))[0]

tests/integration/test_data_rows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import uuid
44
from datetime import datetime
55
import json
6+
from labelbox.schema.media_type import MediaType
67

78
import pytest
89
import requests
@@ -959,7 +960,8 @@ def test_data_row_bulk_creation_sync_with_same_global_keys(
959960
def test_create_conversational_text(dataset, conversational_content):
960961
examples = [
961962
{
962-
**conversational_content, 'media_type': 'CONVERSATIONAL'
963+
**conversational_content, 'media_type':
964+
MediaType.Conversational.value
963965
},
964966
conversational_content,
965967
{

0 commit comments

Comments
 (0)