Skip to content

Commit 0d4ef7e

Browse files
committedFeb 28, 2025
--amend
1 parent 575a20b commit 0d4ef7e

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed
 

‎tests/unit/commands/init/test_cli.py

+12-9
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def __init__(self, no_interactive=False):
4747

4848

4949
class TestCli(TestCase):
50+
51+
maxDiff = None
52+
5053
def setUp(self):
5154
self.ctx = None
5255
self.no_interactive = True
@@ -1886,7 +1889,7 @@ def test_init_cli_image_pool_with_base_image_having_one_managed_template_with_pr
18861889
):
18871890
init_options_from_manifest_mock.return_value = [
18881891
{
1889-
"directory": "python3.8-image/cookiecutter-ml-apigw-pytorch",
1892+
"directory": "python3.9-image/cookiecutter-ml-apigw-pytorch",
18901893
"displayName": "PyTorch Machine Learning Inference API",
18911894
"dependencyManager": "pip",
18921895
"appTemplate": "ml-apigw-pytorch",
@@ -1898,7 +1901,7 @@ def test_init_cli_image_pool_with_base_image_having_one_managed_template_with_pr
18981901
no_interactive=True,
18991902
pt_explicit=True,
19001903
package_type="Image",
1901-
base_image="amazon/python3.8-base",
1904+
base_image="amazon/python3.9-base",
19021905
dependency_manager="pip",
19031906
app_template="ml-apigw-pytorch", # same value as appTemplate indicated in the manifest above
19041907
name=self.name,
@@ -1915,7 +1918,7 @@ def test_init_cli_image_pool_with_base_image_having_one_managed_template_with_pr
19151918
generate_project_patch.assert_called_once_with(
19161919
ANY, # location
19171920
"Image", # package_type
1918-
"python3.8", # runtime
1921+
"python3.9", # runtime
19191922
"pip", # dependency_manager
19201923
self.output_dir,
19211924
self.name,
@@ -1936,7 +1939,7 @@ def test_init_cli_image_pool_with_base_image_having_one_managed_template_with_pr
19361939
):
19371940
init_options_from_manifest_mock.return_value = [
19381941
{
1939-
"directory": "python3.8-image/cookiecutter-ml-apigw-pytorch",
1942+
"directory": "python3.9-image/cookiecutter-ml-apigw-pytorch",
19401943
"displayName": "PyTorch Machine Learning Inference API",
19411944
"dependencyManager": "pip",
19421945
"appTemplate": "ml-apigw-pytorch",
@@ -1949,7 +1952,7 @@ def test_init_cli_image_pool_with_base_image_having_one_managed_template_with_pr
19491952
no_interactive=True,
19501953
pt_explicit=True,
19511954
package_type="Image",
1952-
base_image="amazon/python3.8-base",
1955+
base_image="amazon/python3.9-base",
19531956
dependency_manager="pip",
19541957
app_template="NOT-ml-apigw-pytorch", # different value than appTemplate shown in the manifest above
19551958
name=self.name,
@@ -2185,7 +2188,7 @@ def test_must_return_runtime_from_base_image_name(self):
21852188
"amazon/go1.x-base",
21862189
"amazon/java11-base",
21872190
"amazon/nodejs20.x-base",
2188-
"amazon/python3.8-base",
2191+
"amazon/python3.9-base",
21892192
"amazon/go-provided.al2-base",
21902193
"amazon/ruby3.2-base",
21912194
]
@@ -2195,7 +2198,7 @@ def test_must_return_runtime_from_base_image_name(self):
21952198
"go1.x",
21962199
"java11",
21972200
"nodejs20.x",
2198-
"python3.8",
2201+
"python3.9",
21992202
"go (provided.al2)",
22002203
"ruby3.2",
22012204
]
@@ -2266,10 +2269,10 @@ def test_must_process_manifest(self, _get_manifest_mock):
22662269
}
22672270
]
22682271
},
2269-
"python3.8": {
2272+
"python3.9": {
22702273
"Image": [
22712274
{
2272-
"directory": "python3.8-image/cookiecutter-aws-sam-hello-python-lambda-image",
2275+
"directory": "python3.9-image/cookiecutter-aws-sam-hello-python-lambda-image",
22732276
"displayName": "Hello World Lambda Image Example",
22742277
"dependencyManager": "pip",
22752278
"appTemplate": "hello-world-lambda-image",

‎tests/unit/hook_packages/terraform/hooks/prepare/test_enrich.py

+3
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,9 @@ def test_validate_referenced_resource_matches_sam_metadata_type_invalid_types(
12121212
([Mock(stdout="Python 3.10.12")], "python3"),
12131213
(
12141214
[
1215+
Mock(stdout="Python 3.6.10"),
1216+
Mock(stdout="Python 3.0.10"),
1217+
Mock(stdout="Python 2.7.10"),
12151218
Mock(stdout="Python 3.12.1"),
12161219
],
12171220
"py",

‎tests/unit/lib/build_module/test_workflow_config.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ def setUp(self):
1616
self.project_dir = ""
1717
EventTracker.clear_trackers()
1818

19-
@parameterized.expand(
20-
[("python3.9",), ("python3.10",), ("python3.11",), ("python3.12",), ("python3.13",)]
21-
)
19+
@parameterized.expand([("python3.9",), ("python3.10",), ("python3.11",), ("python3.12",), ("python3.13",)])
2220
def test_must_work_for_python(self, runtime):
2321
result = get_workflow_config(runtime, self.code_dir, self.project_dir)
2422
self.assertEqual(result.language, "python")

‎tests/unit/local/docker/test_lambda_container.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
Runtime.nodejs18x.value,
2222
Runtime.nodejs20x.value,
2323
Runtime.nodejs22x.value,
24-
Runtime.python38.value,
2524
Runtime.python39.value,
2625
Runtime.python310.value,
2726
Runtime.python311.value,

‎tests/unit/local/docker/test_lambda_debug_settings.py

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
Runtime.nodejs18x,
1818
Runtime.nodejs20x,
1919
Runtime.nodejs22x,
20-
Runtime.python38,
2120
Runtime.python39,
2221
Runtime.python310,
2322
Runtime.python311,

0 commit comments

Comments
 (0)
Failed to load comments.