Skip to content

Commit f4bc9bf

Browse files
rllinrllin
authored andcommitted
another test
1 parent d5f3f7d commit f4bc9bf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

labelbox/schema/bulk_import_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def _validate_ndjson(lines: Iterable[Dict[str, Any]]) -> None:
292292
293293
- verifies that uuids are unique
294294
295-
""""
295+
"""
296296
uuids: Set[str] = set()
297297
for line in lines:
298298
uuid = line['uuid']

tests/integration/test_bulk_import_request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ def test_validate_ndjson_uuid(tmp_path, project):
129129
with pytest.raises(UuidError):
130130
project.upload_annotations(name="name", annotations=str(file_path))
131131

132+
with pytest.raises(UuidError):
133+
project.upload_annotations(name="name", annotations=repeat_uuid)
134+
132135

133136
@pytest.mark.slow
134137
def test_wait_till_done(project):

0 commit comments

Comments
 (0)