On Tue, Oct 18, 2016 at 3:44 PM, Sergi Almacellas Abellana <se...@koolpi.com
> wrote:

> El 18/10/16 a les 10:27, Markus Bala ha escrit:
>
>> Hi Sergi,
>>
>> Example code as below, if in the proteus, how am I going to call
>> "test_method"?
>>
>> Class stock_move:
>>     def test_method(self, value1, value2):
>>         return value1 + value2
>>
> If the code is this simple and you want to test only a method I will write
> a unittest for it and don't test using proteus.
>
> IMHO Proteus should be used when testing full user interaction, on_change
> functions or full workflows.


Hi Sergi,

Sorry, I think I made you confuse.
I made 2 question in one email:

The 1st question is how to write and call unittest. I had already
understand the concept and trying to understand by hand on.

The 2nd question is how to call method from proteus. --> This is not for
Unit Test but for development.
How to call the method from proteus usign RPC?


Apologize again, to make you confuse


>
>
>
> --
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk
>
> --
> You received this message because you are subscribed to the Google Groups
> "tryton-dev" group.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/tryton-dev/b4718823-54d2-1101-60b6-7e7acacdbb06%40koolpi.com.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/CAOzpWEEotp7UTa2iNEfxmXONyFSmAtB%2BDP2yb76whvrBFOp-WA%40mail.gmail.com.

Reply via email to