Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/integration/annotation_import/fixtures/export_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def expected_export_v2_text():
def expected_export_v2_video():
expected_annotations = {
'frames': {},
'segments': {},
'segments': {
'<cuid>': [[7, 13], [18, 19]]
},
'key_frame_feature_map': {},
'classifications': [{
'name': 'checklist',
Expand Down
27 changes: 3 additions & 24 deletions tests/integration/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,43 +65,22 @@ def test_create_batch_with_non_existent_global_keys(project: Project):
) == "Data rows with the following global keys do not exist: key1."


def test_create_batch_with_negative_priority(project: Project,
small_dataset: Dataset):
def test_create_batch_with_string_priority(project: Project,
small_dataset: Dataset):
with pytest.raises(LabelboxError):
project.create_batch("batch1",
data_rows=get_data_row_ids(small_dataset),
priority=-1)
priority="abcd")


def test_create_batch_with_null_priority(project: Project,
small_dataset: Dataset):
with pytest.raises(LabelboxError):
project.create_batch("batch1",
data_rows=get_data_row_ids(small_dataset),
priority=0)

with pytest.raises(LabelboxError):
project.create_batch("batch1",
data_rows=get_data_row_ids(small_dataset),
priority=None)


def test_create_batch_with_out_of_bound_priority(project: Project,
small_dataset: Dataset):
with pytest.raises(LabelboxError):
project.create_batch("batch1",
data_rows=get_data_row_ids(small_dataset),
priority=6)


def test_create_batch_with_float_number_priority(project: Project,
small_dataset: Dataset):
with pytest.raises(LabelboxError):
project.create_batch("batch1",
data_rows=get_data_row_ids(small_dataset),
priority=4.9)


def test_create_batch_async(project: Project,
big_dataset_data_row_ids: List[str]):
batch = project._create_batch_async("big-batch",
Expand Down