Skip to content

Commit

Permalink
tc-query - use dict.items to assert test result
Browse files Browse the repository at this point in the history
  • Loading branch information
kentnsw committed Sep 14, 2022
1 parent 6cc574d commit 0c7020e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/c7n_tencentcloud/tests/test_tc_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,5 @@ def test_resources(self, ctx, session, test_case, monkeypatch):
monkeypatch.setattr(QueryResourceManager, "resource_type", test_case[0])
resource_manager = QueryResourceManager(ctx, {})
res = resource_manager.resources()
assert res.items() >= test_case[4].items()
for i in range(len(test_case[4])):
assert res[i].items() >= test_case[4][i].items()

0 comments on commit 0c7020e

Please sign in to comment.