Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tests related to object_provides index #518

Merged
merged 9 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/518.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update test assertions for object_provides index due to Plone Site changes. @Akshat2Jain
jaroel marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions src/plone/api/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ def test_find_interface_dict(self):
"operator": "and",
},
)
self.assertEqual(len(brains), 1)
self.assertEqual(len(brains), 2)
jaroel marked this conversation as resolved.
Show resolved Hide resolved

# plone.api query using interfaces
brains = api.content.find(
Expand Down Expand Up @@ -1042,7 +1042,7 @@ def test_find_interface_dict__include_not_query(self):
},
)

self.assertEqual(len(brains_all) - len(brains), 1)
self.assertEqual(len(brains_all) - len(brains), 0)
jaroel marked this conversation as resolved.
Show resolved Hide resolved

def test_find_interface_dict__all_options(self):
"""Check for all options in a object_provides query are correctly
Expand Down
Loading