In scenario, compute today after module installation to minimize issues if test is executed near midnight.

This commit is contained in:
Albert Cervera i Areny 2023-04-16 18:32:59 +02:00
parent 8462751e21
commit abfa698565
1 changed files with 1 additions and 1 deletions

View File

@ -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"