Skip to content

Commit 6a5a5a7

Browse files
authored
chore(python) - Add support for python 3.9 and 3.10 (#911)
* Add python 3.9 and 3.10 support
1 parent 1a2eb78 commit 6a5a5a7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/pr-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
AWS_DEFAULT_REGION: us-east-1
1515
strategy:
1616
matrix:
17-
python: [3.6, 3.7, 3.8]
17+
python: [3.6, 3.7, 3.8, 3.9, "3.10"]
1818
os: [ubuntu-latest, macos-latest, windows-latest]
1919
runs-on: ${{ matrix.os }}
2020
steps:

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def find_version(*file_paths):
7373
"Programming Language :: Python :: 3.6",
7474
"Programming Language :: Python :: 3.7",
7575
"Programming Language :: Python :: 3.8",
76+
"Programming Language :: Python :: 3.9",
77+
"Programming Language :: Python :: 3.10",
7678
],
7779
keywords="Amazon Web Services AWS CloudFormation",
7880
)

tests/test_type_schema_loader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_load_type_schema_from_file(loader):
135135
type_schema = loader.load_type_schema(TEST_TARGET_SCHEMA_FILE_PATH)
136136

137137
assert_dict_equals(TEST_TARGET_SCHEMA, type_schema)
138-
mock_path_is_file.assert_called_with(TEST_TARGET_SCHEMA_FILE_PATH)
138+
mock_path_is_file.assert_any_call(TEST_TARGET_SCHEMA_FILE_PATH)
139139
mock_load_file.assert_called_with(TEST_TARGET_SCHEMA_FILE_PATH, None)
140140
mock_file.assert_called_with(TEST_TARGET_SCHEMA_FILE_PATH, "r")
141141

@@ -154,7 +154,7 @@ def test_load_type_schema_from_file_file_not_found(loader):
154154
type_schema = loader.load_type_schema(TEST_TARGET_SCHEMA_FILE_PATH)
155155

156156
assert not type_schema
157-
mock_path_is_file.assert_called_with(TEST_TARGET_SCHEMA_FILE_PATH)
157+
mock_path_is_file.assert_any_call(TEST_TARGET_SCHEMA_FILE_PATH)
158158
mock_load_file.assert_called_with(TEST_TARGET_SCHEMA_FILE_PATH, None)
159159
mock_file.assert_called_with(TEST_TARGET_SCHEMA_FILE_PATH, "r")
160160

@@ -175,7 +175,7 @@ def test_load_type_schema_from_file_error_fallback_to_default(loader):
175175
)
176176

177177
assert_dict_equals(OTHER_TEST_TARGET_FALLBACK_SCHEMA, type_schema)
178-
mock_path_is_file.assert_called_with(TEST_TARGET_SCHEMA_FILE_PATH)
178+
mock_path_is_file.assert_any_call(TEST_TARGET_SCHEMA_FILE_PATH)
179179
mock_load_file.assert_called_with(
180180
TEST_TARGET_SCHEMA_FILE_PATH, OTHER_TEST_TARGET_FALLBACK_SCHEMA
181181
)

0 commit comments

Comments
 (0)