Skip to content

Commit

Permalink
fixed test typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanasco committed Jan 15, 2025
1 parent bd7839a commit 767d668
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/json_util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ def test_decode_cert(self) -> None:
with warnings.catch_warnings():
# DEPRECATED
warnings.filterwarnings("ignore", category=DeprecationWarning)
cert = decode_cert(self.b64_cert)
assert isinstance(cert, util.ComparableX509)
assert cert == COMPARABLE_CERT
cert_legacy = decode_cert(self.b64_cert)
assert isinstance(cert_legacy, util.ComparableX509)
assert cert_legacy == COMPARABLE_CERT
with pytest.raises(errors.DeserializationError):
decode_cert("")

Expand All @@ -366,9 +366,9 @@ def test_decode_csr(self) -> None:
with warnings.catch_warnings():
# DEPRECATED
warnings.filterwarnings("ignore", category=DeprecationWarning)
csr = decode_csr(self.b64_csr)
assert isinstance(csr, util.ComparableX509)
assert csr == COMPARABLE_CSR
csr_legacy = decode_csr(self.b64_csr)
assert isinstance(csr_legacy, util.ComparableX509)
assert csr_legacy == COMPARABLE_CSR
with pytest.raises(errors.DeserializationError):
decode_csr("")

Expand Down

0 comments on commit 767d668

Please sign in to comment.