Re: [tryton-dev] How to run unittest

2016-10-18 Thread Sergi Almacellas Abellana
El 18/10/16 a les 11:14, Markus Bala ha escrit: Sorry, I think I made you confuse. I made 2 question in one email Yes, i got confused by this fact. The 1st question is how to write and call unittest. I had already understand the concept and trying to understand by hand on. So I think

Re: [tryton-dev] How to run unittest

2016-10-18 Thread Markus Bala
On Tue, Oct 18, 2016 at 3:44 PM, Sergi Almacellas Abellana 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,

Re: [tryton-dev] How to run unittest

2016-10-18 Thread Sergi Almacellas Abellana
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

Re: [tryton-dev] How to run unittest

2016-10-18 Thread Markus Bala
On Tue, Oct 18, 2016 at 3:18 PM, Sergi Almacellas Abellana wrote: > El 17/10/16 a les 19:27, Markus Bala ha escrit: > >> thank you for your comment. >> Now I understand where to start to write my unit test. I will try later. >> >> I have a question. >> Is it possible Proteus

Re: [tryton-dev] How to run unittest

2016-10-18 Thread Sergi Almacellas Abellana
El 17/10/16 a les 19:27, Markus Bala ha escrit: thank you for your comment. Now I understand where to start to write my unit test. I will try later. I have a question. Is it possible Proteus able to call method/function? Yes, you can use proteus to call any RPC method, but I'm pretty sure we