From 8bd7099322fe749bcbc08d7615d8e3e2551f4bf8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 17 Feb 2024 05:30:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_stack.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/tests/test_stack.py b/tests/test_stack.py index 706434815..a30f21238 100644 --- a/tests/test_stack.py +++ b/tests/test_stack.py @@ -183,11 +183,9 @@ def test_init__non_boolean_obsolete_value__raises_invalid_config_file_error(self obsolete="true", ) - @pytest.mark.parametrize("parameters", [ - {"someNum": 1}, - {"someBool": True}, - {"aBadList": [1, 2, 3]} - ]) + @pytest.mark.parametrize( + "parameters", [{"someNum": 1}, {"someBool": True}, {"aBadList": [1, 2, 3]}] + ) def test_init__invalid_types_raise_invalid_config_file_error(self, parameters): with pytest.raises(InvalidConfigFileError): Stack( @@ -195,21 +193,20 @@ def test_init__invalid_types_raise_invalid_config_file_error(self, parameters): project_code="project_code", template_handler_config={"type": "file"}, region="region", - parameters=parameters + parameters=parameters, ) - @pytest.mark.parametrize("parameters", [ - {"someNum": "1"}, - {"someBool": "true"}, - {"aBadList": ["1", "2", "3"]} - ]) + @pytest.mark.parametrize( + "parameters", + [{"someNum": "1"}, {"someBool": "true"}, {"aBadList": ["1", "2", "3"]}], + ) def test_init__valid_types(self, parameters): stack = Stack( name="stack_name", project_code="project_code", template_handler_config={"type": "file"}, region="region", - parameters=parameters + parameters=parameters, ) assert stack.name == "stack_name"