Tryton - Issues



Title Scenario depending on current date
Priority feature Status chatting
Superseder Nosy List ced, nicoe, pokoli
Type behavior Components trytond
Assigned To Keywords

Created on 2017-02-14.10:09:20 by ced, last changed by ced.

msg50487 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-07-02.08:13:19
Another similar failure:
msg46569 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-01-29.08:13:21
Another similar failure:
msg31925 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2017-02-14.19:06:10
I think that monkey-patching in the test will ensure that the code is actually using it as it should instead of datetime.
msg31921 (view) Author: [hidden] (nicoe) (Tryton committer) Date: 2017-02-14.15:39:47
Isn't it possible to run the scenario using a tool like datefudge or faketime ( ?
msg31906 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2017-02-14.10:09:20
The run [1] (which will disappear on relaunch) failed because the scenario run during the midnight.
I think we should have the run tests script freeze the today of and in the scenario we should always use and not datetime module.

Date User Action Args
2019-07-02 08:13:19cedsetmessages: + msg50487
2019-01-29 08:13:21cedsetmessages: + msg46569
2017-02-14 19:06:10cedsetmessages: + msg31925
2017-02-14 15:39:47nicoesetstatus: unread -> chatting
nosy: + nicoe
messages: + msg31921
2017-02-14 10:12:24pokolisetnosy: + pokoli
2017-02-14 10:09:20cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)