Browse Source

[FIX] at_install/post_install test decorators

pull/28/head
Andrea 6 years ago
parent
commit
8c365fd10d
  1. 4
      date_range/tests/test_date_range.py
  2. 4
      date_range/tests/test_date_range_generator.py
  3. 4
      date_range/tests/test_date_range_type.py

4
date_range/tests/test_date_range.py

@ -3,13 +3,13 @@
import datetime import datetime
import odoo
from odoo.exceptions import ValidationError from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase
@odoo.tests.tagged('post_install', '-at_install')
class DateRangeTest(TransactionCase): class DateRangeTest(TransactionCase):
post_install = True
at_install = False
def setUp(self): def setUp(self):
super(DateRangeTest, self).setUp() super(DateRangeTest, self).setUp()

4
date_range/tests/test_date_range_generator.py

@ -5,13 +5,13 @@ import datetime
from dateutil.rrule import MONTHLY from dateutil.rrule import MONTHLY
import odoo
from odoo.exceptions import ValidationError from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase
@odoo.tests.tagged('post_install', '-at_install')
class DateRangeGeneratorTest(TransactionCase): class DateRangeGeneratorTest(TransactionCase):
post_install = True
at_install = False
def setUp(self): def setUp(self):
super(DateRangeGeneratorTest, self).setUp() super(DateRangeGeneratorTest, self).setUp()

4
date_range/tests/test_date_range_type.py

@ -3,14 +3,14 @@
from psycopg2 import IntegrityError from psycopg2 import IntegrityError
import odoo
from odoo.exceptions import ValidationError from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase
from odoo.tools import mute_logger from odoo.tools import mute_logger
@odoo.tests.tagged('post_install', '-at_install')
class DateRangeTypeTest(TransactionCase): class DateRangeTypeTest(TransactionCase):
post_install = True
at_install = False
def setUp(self): def setUp(self):
super(DateRangeTypeTest, self).setUp() super(DateRangeTypeTest, self).setUp()

Loading…
Cancel
Save