Skip to content

Commit 3aa807a

Browse files
vbrodskyVal Brodsky
authored andcommitted
Fix exception type for labeling service test (#1835)
1 parent b728bd1 commit 3aa807a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/labelbox/tests/integration/test_labeling_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_request_labeling_service_moe_project(
5555

5656
labeling_service = project.get_labeling_service()
5757
with pytest.raises(
58-
LabelboxError,
58+
MalformedQueryException,
5959
match='[{"errorType":"PROJECT_MODEL_CONFIG","errorMessage":"Project model config is not completed"}]',
6060
):
6161
labeling_service.request()
@@ -77,5 +77,5 @@ def test_request_labeling_service_incomplete_requirements(ontology, project):
7777
): # No labeling service by default
7878
labeling_service.request()
7979
project.connect_ontology(ontology)
80-
with pytest.raises(LabelboxError):
80+
with pytest.raises(MalformedQueryException):
8181
labeling_service.request()

0 commit comments

Comments
 (0)