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?