Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 17, 2024
1 parent 3d5a4af commit 8bd7099
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions tests/test_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,33 +183,30 @@ 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(
name="stack_name",
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"

Expand Down

0 comments on commit 8bd7099

Please sign in to comment.