Skip to content

Commit

Permalink
In tests, use selection.any in querystrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees authored and gforcada committed Nov 25, 2015
1 parent e20449d commit ea50f6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Fixes:
zc.buildout`` instead.
[thet]

- In tests, use ``selection.any`` in querystrings.
Issue https://github.com/plone/Products.CMFPlone/issues/1040
[maurits]


2.0.4 (2015-10-28)
------------------
Expand Down
2 changes: 1 addition & 1 deletion plone/app/event/tests/base_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def setUp(self):
collection.reverse_sort = True
collection.query = [
{'i': 'portal_type',
'o': 'plone.app.querystring.operation.selection.is',
'o': 'plone.app.querystring.operation.selection.any',
'v': ['Event', 'plone.app.event.dx.event']
},
]
Expand Down
6 changes: 3 additions & 3 deletions plone/app/event/tests/test_event_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _collection_batching_base(self):
collection = self.portal.col_test
collection.query = [
{'i': 'portal_type',
'o': 'plone.app.querystring.operation.selection.is',
'o': 'plone.app.querystring.operation.selection.any',
'v': ['Event', 'plone.app.event.dx.event']
},
]
Expand Down Expand Up @@ -113,7 +113,7 @@ def test_date_filtering(self):
collection = self.portal.col_without_date_criterion
collection.query = [
{'i': 'portal_type',
'o': 'plone.app.querystring.operation.selection.is',
'o': 'plone.app.querystring.operation.selection.any',
'v': ['Event', 'plone.app.event.dx.event']
},
]
Expand All @@ -133,7 +133,7 @@ def test_no_date_filtering(self):
collection = self.portal.col_with_date_criterion
collection.query = [
{'i': 'portal_type',
'o': 'plone.app.querystring.operation.selection.is',
'o': 'plone.app.querystring.operation.selection.any',
'v': ['Event', 'plone.app.event.dx.event']
},
{'i': 'start',
Expand Down

0 comments on commit ea50f6c

Please sign in to comment.