Skip to content

Commit

Permalink
Add `pragma: no cover
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 10, 2024
1 parent c396b6e commit 3272f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions singer_sdk/authenticators.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,11 @@ def oauth_request_payload(self) -> dict:
import jwt # noqa: PLC0415
from cryptography.hazmat.backends import default_backend # noqa: PLC0415
from cryptography.hazmat.primitives import serialization # noqa: PLC0415
except ModuleNotFoundError as ex:
except ModuleNotFoundError as ex: # pragma: no cover
msg = "Install singer-sdk[jwt] to use OAuthJWTAuthenticator."
raise RuntimeError(msg) from ex

if not self.private_key:
if not self.private_key: # pragma: no cover
msg = "Missing 'private_key' property for OAuth payload."
raise ValueError(msg)

Expand Down

0 comments on commit 3272f6e

Please sign in to comment.