Commit 96e429fc authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Eteri

testERP5Commerce: Prepare fixing isEmptyCriterionValid.

Site template sections are created without any predicate criterion.
It happens to currently work, but for the wrong reasons. Arm this flag
instead.
parent 0f7e3f2c
......@@ -324,6 +324,13 @@ class TestCommerce(ERP5TypeTestCase):
self.tic()
website.WebSite_setupECommerceWebSite()
for section in website.WebSite_getMainSectionList():
# Default site template defines no predicate on web sections, which makes
# sense for a template, but prevents this test from checking whether
# website products are properly listed. To not encourage newcommers to
# set this (performance-wise) dangerous flag but rather to define
# predicate criterion on web sections, set this flag in tests.
section.setEmptyCriterionValid(True)
self.initialiseSupplyLine()
self.tic()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment