Skip to content

Commit b98959c

Browse files
committed
Cover imported exception classes
1 parent 6d4d29e commit b98959c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/vws/exceptions/custom_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class RecoCountsReportTimeoutError(Exception):
9090

9191

9292
@beartype
93-
class ServerError(Exception): # pragma: no cover
93+
class ServerError(Exception):
9494
"""Exception raised when VWS returns a server error."""
9595

9696
def __init__(self, response: Response) -> None:

src/vws/exceptions/vws_exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def target_id(self) -> str:
8686

8787
# This is not simulated by the mock.
8888
@beartype
89-
class DateRangeError(VWSError): # pragma: no cover
89+
class DateRangeError(VWSError):
9090
"""Exception raised when Vuforia returns a response with a result code
9191
'DateRangeError'.
9292
"""
@@ -171,7 +171,7 @@ def target_id(self) -> str:
171171

172172

173173
@beartype
174-
class TooManyRequestsError(VWSError): # pragma: no cover
174+
class TooManyRequestsError(VWSError):
175175
"""Exception raised when Vuforia returns a response with a result code
176176
'TooManyRequests'.
177177
"""
@@ -180,7 +180,7 @@ class TooManyRequestsError(VWSError): # pragma: no cover
180180
# This is not simulated by client code because the accept parameter uses
181181
# the VuMarkAccept enum, which only allows valid values.
182182
@beartype
183-
class InvalidAcceptHeaderError(VWSError): # pragma: no cover
183+
class InvalidAcceptHeaderError(VWSError):
184184
"""Exception raised when Vuforia returns a response with a result code
185185
``InvalidAcceptHeader``.
186186
"""
@@ -196,7 +196,7 @@ class InvalidInstanceIdError(VWSError):
196196
# This is not simulated by client code because the request body
197197
# is always valid JSON when using this client.
198198
@beartype
199-
class BadRequestError(VWSError): # pragma: no cover
199+
class BadRequestError(VWSError):
200200
"""Exception raised when Vuforia returns a response with a result code
201201
``BadRequest``.
202202
"""

0 commit comments

Comments
 (0)