Skip to content

Commit

Permalink
fix: get CI passing again (#288)
Browse files Browse the repository at this point in the history
* fix: Get CI passing again

* chore: run autoformat

* Update test/unit/caches/test_local.py

Co-authored-by: Matt Bullock <bullocm@amazon.com>

* fix: pr changes

Co-authored-by: Matt Bullock <bullocm@amazon.com>
  • Loading branch information
MatthewBennington and mattsb42-aws committed Aug 3, 2020
1 parent 5628ede commit 19e08bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/aws_encryption_sdk/keyrings/aws_kms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

try: # Python 3.5.0 and 3.5.1 have incompatible typing modules
from typing import Dict, Iterable, Union # noqa pylint: disable=unused-import

from .client_suppliers import ClientSupplierType # noqa pylint: disable=unused-import
except ImportError: # pragma: no cover
# We only actually need these imports when running the mypy checks
Expand Down
6 changes: 4 additions & 2 deletions test/unit/caches/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,13 @@ def patch_get_single_entry(mocker):
def test_get_encryption_materials(patch_get_single_entry):
cache = build_lcmc()

test = cache.get_encryption_materials(cache_key=sentinel.cache_key, plaintext_length=sentinel.plaintext_length)
plaintext_length = 42

test = cache.get_encryption_materials(cache_key=sentinel.cache_key, plaintext_length=plaintext_length)

patch_get_single_entry.assert_called_once_with(sentinel.cache_key)
patch_get_single_entry.return_value._update_with_message_bytes_encrypted.assert_called_once_with(
sentinel.plaintext_length
plaintext_length
)
assert test is patch_get_single_entry.return_value

Expand Down

0 comments on commit 19e08bd

Please sign in to comment.