Skip to content

Commit 19e08bd

Browse files
fix: get CI passing again (#288)
* fix: Get CI passing again * chore: run autoformat * Update test/unit/caches/test_local.py Co-authored-by: Matt Bullock <[email protected]> * fix: pr changes Co-authored-by: Matt Bullock <[email protected]>
1 parent 5628ede commit 19e08bd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/aws_encryption_sdk/keyrings/aws_kms/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules
2727
from typing import Dict, Iterable, Union # noqa pylint: disable=unused-import
28+
2829
from .client_suppliers import ClientSupplierType # noqa pylint: disable=unused-import
2930
except ImportError: # pragma: no cover
3031
# We only actually need these imports when running the mypy checks

test/unit/caches/test_local.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,13 @@ def patch_get_single_entry(mocker):
300300
def test_get_encryption_materials(patch_get_single_entry):
301301
cache = build_lcmc()
302302

303-
test = cache.get_encryption_materials(cache_key=sentinel.cache_key, plaintext_length=sentinel.plaintext_length)
303+
plaintext_length = 42
304+
305+
test = cache.get_encryption_materials(cache_key=sentinel.cache_key, plaintext_length=plaintext_length)
304306

305307
patch_get_single_entry.assert_called_once_with(sentinel.cache_key)
306308
patch_get_single_entry.return_value._update_with_message_bytes_encrypted.assert_called_once_with(
307-
sentinel.plaintext_length
309+
plaintext_length
308310
)
309311
assert test is patch_get_single_entry.return_value
310312

0 commit comments

Comments
 (0)