Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Jul 19, 2024
1 parent fdb0167 commit a19667c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
</caption>
</term>
</term>
</vdex>
</vdex>
6 changes: 4 additions & 2 deletions src/collective/taxonomy/tests/test_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ def test_index_single_select(self):
self.document.taxonomy_test = taxo_val
self.document.reindexObject()
self.assertEqual(len(portal_catalog({"taxonomy_test": "5"})), 0)
self.assertEqual(len(portal_catalog({"taxonomy_test": "55"})), 0) # not Cars ...
self.assertEqual(len(portal_catalog({"taxonomy_test": "56"})), 1) # ... but Carson
# not Cars ...
self.assertEqual(len(portal_catalog({"taxonomy_test": "55"})), 0)
# ... but Carson
self.assertEqual(len(portal_catalog({"taxonomy_test": "56"})), 1)

def test_indexer_with_property(self):
portal_catalog = api.portal.get_tool("portal_catalog")
Expand Down

0 comments on commit a19667c

Please sign in to comment.