Skip to content

Commit 7ab6b53

Browse files
committed
fix assert message
1 parent cc8eed7 commit 7ab6b53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/test_data_rows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,8 @@ def test_create_data_row_with_media_type(dataset, image_url):
998998
with pytest.raises(labelbox.exceptions.InvalidQueryError) as exc:
999999
dr = dataset.create_data_row(
10001000
row_data={'invalid_object': 'invalid_value'}, media_type="IMAGE")
1001-
assert "Found invalid contents for media type: \'IMAGE\'" in str(exc.value)
1001+
assert "Media type validation failed, expected: 'image/*', was: application/json" in str(
1002+
exc.value)
10021003

10031004
dataset.create_data_row(row_data=image_url, media_type="IMAGE")
10041005

0 commit comments

Comments
 (0)