Skip to content

Commit

Permalink
compare case template using id
Browse files Browse the repository at this point in the history
  • Loading branch information
Anko59 committed Jan 14, 2025
1 parent 56d1816 commit 719c09b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_case_template_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ def test_find(
test_case_templates: List[OutputCaseTemplate],
):
found_templates = thehive.case_template.find()
names = [template["name"] for template in found_templates]
for test_template in test_case_templates:
assert test_template["name"] in names
original_ids = [template["_id"] for template in test_case_templates]
found_ids = [template["_id"] for template in found_templates]
assert sorted(found_ids) == sorted(original_ids)

0 comments on commit 719c09b

Please sign in to comment.