|
5 | 5 |
|
6 | 6 |
|
7 | 7 | from .common import TestCommon |
| 8 | +from odoo.exceptions import ValidationError, UserError |
8 | 9 |
|
9 | 10 |
|
10 | 11 | class TestPicking(TestCommon): |
11 | | - # def test_date_backdating_yesterday(self): |
12 | | - # date_backdating = self._get_datetime_backdating(1) |
13 | | - # self._transfer_picking_with_dates(date_backdating) |
14 | | - |
15 | | - # def test_date_backdating_last_month(self): |
16 | | - # date_backdating = self._get_datetime_backdating(31) |
17 | | - # self._transfer_picking_with_dates(date_backdating) |
18 | | - |
19 | | - # def test_date_backdating_future_wizard(self): |
20 | | - # date_backdating = self._get_datetime_backdating(-1) |
21 | | - # with self.assertRaises(ValidationError): |
22 | | - # self._transfer_picking_with_dates(date_backdating) |
23 | | - |
24 | | - # def test_date_backdating_future(self): |
25 | | - # date_backdating_1 = self._get_datetime_backdating(-1) |
26 | | - # date_backdating_2 = self._get_datetime_backdating(-2) |
27 | | - # with self.assertRaises(UserError): |
28 | | - # self._transfer_picking_with_dates(date_backdating_1, date_backdating_2) |
| 12 | + def test_date_backdating_yesterday(self): |
| 13 | + date_backdating = self._get_datetime_backdating(1) |
| 14 | + self._transfer_picking_with_dates(date_backdating) |
| 15 | + |
| 16 | + def test_date_backdating_last_month(self): |
| 17 | + date_backdating = self._get_datetime_backdating(31) |
| 18 | + self._transfer_picking_with_dates(date_backdating) |
| 19 | + |
| 20 | + def test_date_backdating_future_wizard(self): |
| 21 | + date_backdating = self._get_datetime_backdating(-1) |
| 22 | + with self.assertRaises(ValidationError): |
| 23 | + self._transfer_picking_with_dates(date_backdating) |
| 24 | + |
| 25 | + def test_date_backdating_future(self): |
| 26 | + date_backdating_1 = self._get_datetime_backdating(-1) |
| 27 | + date_backdating_2 = self._get_datetime_backdating(-2) |
| 28 | + with self.assertRaises(UserError): |
| 29 | + self._transfer_picking_with_dates(date_backdating_1, date_backdating_2) |
29 | 30 |
|
30 | 31 | def test_different_dates_backdating(self): |
31 | 32 | date_backdating_1 = self._get_datetime_backdating(1) |
|
0 commit comments