Skip to content

Commit f776b79

Browse files
author
Val Brodsky
committed
Fix missing parser in tests
1 parent c4247b0 commit f776b79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/integration/annotation_import/test_upsert_prediction_import.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import uuid
22
from labelbox import parser
33
import pytest
4-
5-
from labelbox.schema.annotation_import import AnnotationImportState, MEAPredictionImport
64
"""
75
- Here we only want to check that the uploads are calling the validation
86
- Then with unit tests we can check the types of errors raised
@@ -28,7 +26,7 @@ def test_create_from_url(client, tmp_path, object_predictions,
2826
if p['dataRow']['id'] in model_run_data_rows
2927
]
3028
with file_path.open("w") as f:
31-
ndjson.dump(predictions, f)
29+
parser.dump(predictions, f)
3230

3331
# Needs to have data row ids
3432

@@ -114,7 +112,7 @@ def test_create_from_local_file(tmp_path, model_run_with_data_rows,
114112
]
115113

116114
with file_path.open("w") as f:
117-
ndjson.dump(predictions, f)
115+
parser.dump(predictions, f)
118116

119117
annotation_import, batch, mal_prediction_import = model_run_with_data_rows.upsert_predictions_and_send_to_project(
120118
name=name,

0 commit comments

Comments
 (0)