Skip to content

Commit 3f6a9b9

Browse files
author
Val Brodsky
committed
Fix create batch negative tests due to change in batch priority rules
1 parent 6eacf99 commit 3f6a9b9

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

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)