Skip to content

Commit 90a14da

Browse files
committed
fix test
1 parent dfbb954 commit 90a14da

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
repos:
22
- repo: https://github.com/rhysd/actionlint
3-
rev: v1.7.4
3+
rev: v1.7.5
44
hooks:
55
- id: actionlint-docker
66
- repo: https://github.com/antonbabenko/pre-commit-terraform
7-
rev: v1.96.2
7+
rev: v1.96.3
88
hooks:
99
- id: terraform_fmt
1010
# - id: terraform_docs
1111
# args: ['--sort-by-required', '--no-providers']
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.8.1
13+
rev: v0.8.4
1414
hooks:
1515
- id: ruff
1616
args: [--fix]

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ coverage==7.6.8
66
# Integration tests and tasks
77
invoke==2.2.0
88
# Type hints
9-
mypy[faster-cache]==1.13.0
9+
mypy[faster-cache]==1.14.1
1010
types-pyyaml==6.0.12.20240917
1111
types-requests==2.32.0.20241016
1212
types-beautifulsoup4==4.12.0.20241020

test/writing/test_sid_group_crud.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,12 @@ def test_exclude_actions_empty_sid_from_crud_output(self):
577577
}
578578
self.maxDiff = None
579579
print(json.dumps(result, indent=4))
580+
actual_actions = next(
581+
(statement for statement in expected_result["Statement"] if statement["Sid"] == "S3WriteBucket"), None
582+
)
580583
expected_actions = expected_result["Statement"][0]["Action"]
581584
for action in expected_actions:
582-
self.assertIn(action, result["Statement"][0]["Action"])
585+
self.assertIn(action, actual_actions["Action"])
583586
# self.assertDictEqual(result, expected_result)
584587

585588
def test_write_template_with_sts_actions(self):

0 commit comments

Comments
 (0)