File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ from labelbox .schema .media_type import MediaType
12import pytest
23
34from labelbox import parser
@@ -25,8 +26,11 @@ def get_data_row_id(indx=0):
2526
2627@pytest .fixture (scope = "module" , autouse = True )
2728def 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 ]
Original file line number Diff line number Diff line change 33import uuid
44from datetime import datetime
55import json
6+ from labelbox .schema .media_type import MediaType
67
78import pytest
89import requests
@@ -959,7 +960,8 @@ def test_data_row_bulk_creation_sync_with_same_global_keys(
959960def 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 {
You can’t perform that action at this time.
0 commit comments