Skip to content

Commit 792f3a9

Browse files
authored
[PLT-901] Vb/fix some tests plt 901 (#1661)
2 parents 8538c9c + c42d021 commit 792f3a9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

libs/labelbox/tests/data/annotation_import/test_model_run.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,14 @@ def get_model_run_status():
168168
errorMessage)
169169

170170

171-
def test_model_run_split_assignment_by_data_row_ids(
172-
model_run, dataset, image_url, configured_project_with_one_data_row):
171+
def test_model_run_split_assignment_by_data_row_ids(model_run, dataset,
172+
image_url):
173173
n_data_rows = 2
174174
data_rows = dataset.create_data_rows([{
175175
"row_data": image_url
176176
} for _ in range(n_data_rows)])
177177
data_rows.wait_till_done()
178178
data_row_ids = [data_row['id'] for data_row in data_rows.result]
179-
configured_project_with_one_data_row._wait_until_data_rows_are_processed(
180-
data_row_ids=data_row_ids)
181179
model_run.upsert_data_rows(data_row_ids)
182180

183181
with pytest.raises(ValueError):

libs/labelbox/tests/integration/test_filtering.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def project_to_test_where(client, rand_gen):
2626
# other builds simultaneously adding projects to test org
2727
def test_where(client, project_to_test_where):
2828
p_a, p_b, p_c = project_to_test_where
29-
p_a_name, p_b_name = [p.name for p in [p_a, p_b]]
29+
p_a_name = p_a.name
30+
p_b_name = p_b.name
3031

3132
def get(where=None):
3233
date_where = Project.created_at >= p_a.created_at

libs/labelbox/tests/integration/test_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_task_success_label_export(client, configured_project_with_label):
6767
user = client.get_user()
6868
task = None
6969
for task in user.created_tasks():
70-
if task.name != 'JSON Import' and task.type != 'adv-upsert-data-rows':
70+
if task.name != 'JSON Import' and task.type != 'adv-upsert-data-rows' and task.type != 'mea-label-registration':
7171
break
7272

7373
with pytest.raises(ValueError) as exc_info:

0 commit comments

Comments
 (0)