Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Jan 1, 2025
1 parent 2ad9dc6 commit 4dfee4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.7.4
rev: v1.7.5
hooks:
- id: actionlint-docker
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
rev: v1.96.3
hooks:
- id: terraform_fmt
# - id: terraform_docs
# args: ['--sort-by-required', '--no-providers']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.8.4
hooks:
- id: ruff
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coverage==7.6.8
# Integration tests and tasks
invoke==2.2.0
# Type hints
mypy[faster-cache]==1.13.0
mypy[faster-cache]==1.14.1
types-pyyaml==6.0.12.20240917
types-requests==2.32.0.20241016
types-beautifulsoup4==4.12.0.20241020
5 changes: 4 additions & 1 deletion test/writing/test_sid_group_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,12 @@ def test_exclude_actions_empty_sid_from_crud_output(self):
}
self.maxDiff = None
print(json.dumps(result, indent=4))
actual_actions = next(
(statement for statement in expected_result["Statement"] if statement["Sid"] == "S3WriteBucket"), None
)
expected_actions = expected_result["Statement"][0]["Action"]
for action in expected_actions:
self.assertIn(action, result["Statement"][0]["Action"])
self.assertIn(action, actual_actions["Action"])
# self.assertDictEqual(result, expected_result)

def test_write_template_with_sts_actions(self):
Expand Down

0 comments on commit 4dfee4f

Please sign in to comment.