Skip to content

Commit

Permalink
Removed type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mephenor committed Dec 10, 2024
1 parent 0dff00d commit e2b89cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions services/ekss/tests_ekss/unit/test_config_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ def test_private_key():
private_key = CONFIG.server_private_key.get_secret_value()

with pytest.raises(ValueError, match="Incorrect padding"):
_ = Config(server_public_key=public_key, server_private_key="abc" + private_key) # type:ignore
_ = Config(server_public_key=public_key, server_private_key="abc" + private_key)

with pytest.raises(
ValueError, match="Length of decoded private key did not match expectation"
):
_ = Config(
server_public_key=public_key, server_private_key="abcd" + private_key
) # type:ignore
)


def test_public_key():
Expand All @@ -42,11 +42,10 @@ def test_public_key():
private_key = CONFIG.server_private_key.get_secret_value()

with pytest.raises(ValueError, match="Incorrect padding"):
_ = Config(server_public_key="abc" + public_key, server_private_key=private_key) # type:ignore

_ = Config(server_public_key="abc" + public_key, server_private_key=private_key)
with pytest.raises(
ValueError, match="Length of decoded public key did not match expectation"
):
_ = Config(
server_public_key="abcd" + public_key, server_private_key=private_key
) # type:ignore
)

0 comments on commit e2b89cc

Please sign in to comment.