El martes, 7 de noviembre de 2017, 10:40:06 (UTC+1), Cédric Krier escribió: > On 2017-11-07 00:41, Javier Uribe wrote: > > El lunes, 6 de noviembre de 2017, 15:40:06 (UTC+1), Cédric Krier escribió: > > > But you could call fields_view_get and evaluate the pyson statement. > > > > That'd be great. So, can I call that method on Proteus tests? Then I > > could test Pyson statements and it'd be very useful. > > Yes you can call from proteus any RPC method, you just have to append > at the end the context dictionary. > proteus embed a pyson library so you should be able to evaluate the > expression with the _EvalEnvironment. > But it is probably cumbersome to test PYSON statement as they should be > quiet simple. There are more chance to have bugs in your testing code > then in the PYSON statement, so does it still deserve a test? > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/
Thank you so much and in this particular case it deserves it because it was a tricky pyson statement with Morgan's laws applied. -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/39ab0ba7-9ae3-404e-b2a4-1cc389c325c1%40googlegroups.com.
