Skip to content

Commit e6a8388

Browse files
committed
added malformed request to test
1 parent 5dbf7d9 commit e6a8388

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration/test_data_rows.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import requests
77

88
from labelbox import DataRow
9-
from labelbox.exceptions import InvalidQueryError
9+
from labelbox.exceptions import InvalidQueryError, MalformedQueryException
1010

1111

1212
def test_get_data_row(datarow, client):
@@ -290,3 +290,6 @@ def test_delete_data_row_attachment(datarow, image_url):
290290
datarow.delete_attachment(uid)
291291

292292
assert len(list(datarow.attachments())) == 0
293+
294+
with pytest.raises(MalformedQueryException):
295+
datarow.delete_attachment("not valid id")

0 commit comments

Comments
 (0)