mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 14:22:56 +00:00
Ensure that *everything* is typed in community.crypto (#917)
* Ensure that *everything* is typed in community.crypto. * Fix comment. * Ignore type definitions/imports and AssertionErrors for code coverage.
This commit is contained in:
@@ -252,7 +252,7 @@ def main() -> t.NoReturn:
|
||||
if client.account_key_data:
|
||||
diff_before["public_account_key"] = client.account_key_data["jwk"]
|
||||
if created:
|
||||
raise AssertionError("Unwanted account creation")
|
||||
raise AssertionError("Unwanted account creation") # pragma: no cover
|
||||
if account_data is not None:
|
||||
# Account is not yet deactivated
|
||||
if not module.check_mode:
|
||||
@@ -310,7 +310,7 @@ def main() -> t.NoReturn:
|
||||
# Verify that the account exists and has not been deactivated
|
||||
created, account_data = account.setup_account(allow_creation=False)
|
||||
if created:
|
||||
raise AssertionError("Unwanted account creation")
|
||||
raise AssertionError("Unwanted account creation") # pragma: no cover
|
||||
if account_data is None:
|
||||
raise ModuleFailException(
|
||||
msg="Account does not exist or is deactivated."
|
||||
|
||||
Reference in New Issue
Block a user