Skip to content

Commit 46c5f08

Browse files
authored
Vb/fix sdk failures (#1338)
2 parents 855fcfe + 3f6a9b9 commit 46c5f08

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

tests/integration/annotation_import/fixtures/export_v2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ def expected_export_v2_text():
147147
def expected_export_v2_video():
148148
expected_annotations = {
149149
'frames': {},
150-
'segments': {},
150+
'segments': {
151+
'<cuid>': [[7, 13], [18, 19]]
152+
},
151153
'key_frame_feature_map': {},
152154
'classifications': [{
153155
'name': 'checklist',

tests/integration/test_batch.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,43 +65,22 @@ def test_create_batch_with_non_existent_global_keys(project: Project):
6565
) == "Data rows with the following global keys do not exist: key1."
6666

6767

68-
def test_create_batch_with_negative_priority(project: Project,
69-
small_dataset: Dataset):
68+
def test_create_batch_with_string_priority(project: Project,
69+
small_dataset: Dataset):
7070
with pytest.raises(LabelboxError):
7171
project.create_batch("batch1",
7272
data_rows=get_data_row_ids(small_dataset),
73-
priority=-1)
73+
priority="abcd")
7474

7575

7676
def test_create_batch_with_null_priority(project: Project,
7777
small_dataset: Dataset):
78-
with pytest.raises(LabelboxError):
79-
project.create_batch("batch1",
80-
data_rows=get_data_row_ids(small_dataset),
81-
priority=0)
82-
8378
with pytest.raises(LabelboxError):
8479
project.create_batch("batch1",
8580
data_rows=get_data_row_ids(small_dataset),
8681
priority=None)
8782

8883

89-
def test_create_batch_with_out_of_bound_priority(project: Project,
90-
small_dataset: Dataset):
91-
with pytest.raises(LabelboxError):
92-
project.create_batch("batch1",
93-
data_rows=get_data_row_ids(small_dataset),
94-
priority=6)
95-
96-
97-
def test_create_batch_with_float_number_priority(project: Project,
98-
small_dataset: Dataset):
99-
with pytest.raises(LabelboxError):
100-
project.create_batch("batch1",
101-
data_rows=get_data_row_ids(small_dataset),
102-
priority=4.9)
103-
104-
10584
def test_create_batch_async(project: Project,
10685
big_dataset_data_row_ids: List[str]):
10786
batch = project._create_batch_async("big-batch",

0 commit comments

Comments
 (0)