Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tupyy committed Apr 22, 2024
1 parent 4370c18 commit 5388d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/unit/plugins/module_utils/test_service_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_catalog_display_fields(self):
assert "has_categories" in ansible
assert "has_items" in ansible
assert "categories" in ansible
assert "items" in ansible
assert "sn_items" in ansible
assert "intruder" not in ansible

def test_category_display_fields(self):
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/plugins/modules/test_service_catalog_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_get_with_categories_and_items(self, create_module):

assert len(records) == 1
assert len(records[0]["categories"]) == 1
assert len(records[0]["items"]) == 1
assert len(records[0]["sn_items"]) == 1
assert records[0]["categories"][0] == service_catalog.Category(category).to_ansible()
assert records[0]["items"][0] == service_catalog.Category(item).to_ansible()
assert records[0]["sn_items"][0] == service_catalog.Category(item).to_ansible()
assert records[0]["sys_id"] == "1"

0 comments on commit 5388d7b

Please sign in to comment.