mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Add typing information, 2/n (#1178)
* Add typing to Docker Stack modules. Clean modules up. * Add typing to Docker Swarm modules. * Add typing to unit tests. * Add more typing. * Add ignore.txt entries.
This commit is contained in:
@@ -20,7 +20,7 @@ from ansible_collections.community.docker.plugins.module_utils._scramble import
|
||||
("hello", b"\x01", "=S=aWRtbW4="),
|
||||
],
|
||||
)
|
||||
def test_scramble_unscramble(plaintext, key, scrambled):
|
||||
def test_scramble_unscramble(plaintext: str, key: bytes, scrambled: str) -> None:
|
||||
scrambled_ = scramble(plaintext, key)
|
||||
print(f"{scrambled_!r} == {scrambled!r}")
|
||||
assert scrambled_ == scrambled
|
||||
|
||||
Reference in New Issue
Block a user