Skip to content

Commit

Permalink
added requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat2Jain committed Oct 14, 2023
1 parent 6504c3f commit bce071a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plone/api/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ def test_find_interface_dict(self):
"operator": "and",
},
)
# Plone Site also implements the IContentish and INavigationRoot interfaces.
self.assertEqual(len(brains), 2)

# plone.api query using interfaces
Expand All @@ -1023,7 +1024,7 @@ def test_find_interface_dict(self):
"operator": "and",
},
)
self.assertEqual(len(brains), 1)
self.assertEqual(len(brains), 2)

def test_find_interface_dict__include_not_query(self):
"""Check if not query in object_provides is functional."""
Expand All @@ -1041,8 +1042,8 @@ def test_find_interface_dict__include_not_query(self):
"not": INavigationRoot.__identifier__,
},
)

self.assertEqual(len(brains_all) - len(brains), 0)
# Plone Site also implements the IContentish and INavigationRoot interfaces.
self.assertEqual(len(brains_all) - len(brains), 2)

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

0 comments on commit bce071a

Please sign in to comment.