summaryrefslogtreecommitdiff
path: root/addons/lunch/tests
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2019-01-08 13:11:03 +0100
committerYannick Tivisse <yti@odoo.com>2019-01-08 13:11:03 +0100
commitcb5541cacdaa0e9c63c3b740dcaca2137bbfc759 (patch)
treeadc45904b7eec6b65a05bdb87772710d65eccc86 /addons/lunch/tests
parent3729ebf34de4fd5015c8109331c195a759e68622 (diff)
Revert "[FIX] lunch: fix lunch_supplier test"
This reverts commit 37212fe655e7e2b2df6fcdfb9d08fcc970e7735b.
Diffstat (limited to 'addons/lunch/tests')
-rw-r--r--addons/lunch/tests/test_supplier.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/lunch/tests/test_supplier.py b/addons/lunch/tests/test_supplier.py
index fe9776e854b..55c57c8e744 100644
--- a/addons/lunch/tests/test_supplier.py
+++ b/addons/lunch/tests/test_supplier.py
@@ -37,9 +37,6 @@ class TestSupplier(TestsCommon):
self.env['lunch.supplier'].invalidate_cache(['available_today'], [self.supplier_pizza_inn.id])
def test_search_available_today(self):
- '''
- This test checks that _search_available_today returns a valid domain
- '''
Supplier = self.env['lunch.supplier']
tests = [(self.monday_3am, 3.0, 'monday'), (self.monday_10am, 10.0, 'monday'),
@@ -47,7 +44,6 @@ class TestSupplier(TestsCommon):
(self.saturday_3am, 3.0, 'saturday'), (self.saturday_10am, 10.0, 'saturday'),
(self.saturday_1pm, 13.0, 'saturday'), (self.saturday_8pm, 20.0, 'saturday')]
- # It should return an empty domain if we compare to values other than datetime
assert Supplier._search_available_today('>', 7) == []
assert Supplier._search_available_today('>', True) == []
@@ -57,7 +53,6 @@ class TestSupplier(TestsCommon):
('recurrency_date_to', '>=', value), '&', '&', ('recurrency_%s' % (dayname), '=', True),
('recurrency_from', '<=', rvalue), ('recurrency_to', '>=', rvalue)], 'Wrong domain generated for values (%s, %s)' % (value, rvalue)
- with patch.object(fields.Datetime, 'now', return_value=self.monday_10am) as _:
assert self.supplier_pizza_inn in Supplier.search([('available_today', '=', True)])
def test_auto_email_send(self):