IRC logs of #tryton for Wednesday, 2023-06-07

irc.libera.chat #tryton log beginning Wed Jun 7 12:10:01 AM CEST 2023
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:21
-!- ChanServ changed mode/#tryton -> +o cedk 23:21
-!- springwurm(~springwur@2a01:76c0:100:f500:ba78:9a99:21f:c068) has joined #tryton05:17
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:29
-!- ChanServ changed mode/#tryton -> +o cedk 06:29
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:38
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton06:48
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton06:49
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton06:50
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton07:23
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:43
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton08:32
-!- springwurm(~springwur@2a01:76c0:100:f500:e1bc:a085:39ac:b267) has joined #tryton12:05
mrichezhi, how do you test a string with a date inside a scenario ?12:47
mrichezgot a rec_name like this '[1] Location @ 07/06/2023'12:47
mricheztry this way : x.rec_name == '[1] Location @ %s' % today12:48
mrichezFalse :(12:48
pokolimrichez: maybe it will be easier to use a fixed date for the scenario instead of today12:52
mrichezdate format is not same ?12:52
pokolimrichez: yes probably the problem is that the format is not the same, you should use strftime to format in the same format12:52
mrichezpokoli: how to know current date format used in the scenario ?12:53
mrichezpokoli: i think i'll follow your advice and use a fixed date... will be easier. Thanks :-)12:56
cedkmrichez: the date format in scenario should be the english one13:02
mrichezcedk: ok, working this way : inventory.rec_name == '[1] Storage Zone @ %s' % today.strftime("%m/%d/%Y")13:04
cedkmrichez: I think as pokoli said, it is better to use a fixed date and test the string as fixed13:12
mrichezcedk: ok, will do this way then :-)13:12
mrichezanother question about heptapod: how manage multiple commits for one merge request ? 13:15
cedkmrichez: you do multiple commits ;-)13:18
mrichezcedk: :-) and if i want to amend one the commits ?13:18
cedkmrichez: hg up <commit> && hg amend && hg evolve13:19
mrichezcedk: ok, thanks13:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton20:34
-!- ChanServ changed mode/#tryton -> +o cedk 20:34

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!