In scenario, compute today after module installation to minimize issues if test is executed near midnight.
This commit is contained in:
parent
8462751e21
commit
abfa698565
|
@ -12,7 +12,6 @@ Imports::
|
|||
>>> from trytond.tests.tools import activate_modules, set_user
|
||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
||||
... get_company
|
||||
>>> today = datetime.date.today()
|
||||
|
||||
Activate module::
|
||||
|
||||
|
@ -203,6 +202,7 @@ Create account farm user::
|
|||
|
||||
Create prescription::
|
||||
|
||||
>>> today = datetime.date.today()
|
||||
>>> Prescription = Model.get('farm.prescription')
|
||||
>>> prescription = Prescription()
|
||||
>>> prescription.reference = "Test prescription"
|
||||
|
|
Loading…
Reference in New Issue