We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fdb69a commit 943e659Copy full SHA for 943e659
tests/integration/test_client_errors.py
@@ -2,6 +2,7 @@
2
import os
3
import time
4
import pytest
5
+from google.api_core.exceptions import RetryError
6
7
from labelbox import Project, Dataset, User
8
import labelbox.client
@@ -43,12 +44,12 @@ def test_semantic_error(client):
43
44
45
46
def test_timeout_error(client, project):
- with pytest.raises(labelbox.exceptions.TimeoutError) as excinfo:
47
- query_str = """query getOntology {
48
- project (where: {id: %s}) {
49
- ontology {
50
- normalized
51
- }
+ with pytest.raises(RetryError) as excinfo:
+ query_str = """query getOntology {
+ project (where: {id: %s}) {
+ ontology {
+ normalized
52
+ }
53
}
54
} """ % (project.uid)
55
0 commit comments