Skip to content

Commit a8d4d04

Browse files
author
Val Brodsky
committed
Try to debug the test
1 parent c845428 commit a8d4d04

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libs/labelbox/src/labelbox/schema/annotation_import.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ def _get_ndjson_from_objects(cls, objects: Union[List[Dict[str, Any]],
170170

171171
data_str = parser.dumps(objects)
172172
if not data_str:
173+
174+
print("Objects:", objects)
175+
print("Serialized objects:", data_str)
173176
raise ValueError(f"{object_name} cannot be empty")
174177

175178
return data_str.encode(

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,9 @@ def _create_prompt_response_project(
710710
time.sleep(1)
711711
timeout += 1
712712

713+
if len(data_row_ids) < 1:
714+
raise Exception("Failed to get data row ids")
715+
713716
prompt_response_project.data_row_ids = data_row_ids
714717
prompt_response_project.global_keys = global_keys
715718

0 commit comments

Comments
 (0)