On 10/29/2013 02:18 PM, Jan Rusnacko wrote:
Hello Thierry,
I am not rewriting ldapadd,... methods of "real" DS class, I am in fact
creating MockDS class with custom ldapadd,... methods, _just_ like you suggest
:)
Furthermore, you can view it as a subclass of "real_ds" - even though it is not
On 10/29/2013 03:30 PM, thierry bordaz wrote:
> On 10/29/2013 02:18 PM, Jan Rusnacko wrote:
>> Hello Thierry,
>>
>> I am not rewriting ldapadd,... methods of "real" DS class, I am in fact
>> creating MockDS class with custom ldapadd,... methods, _just_ like you
>> suggest :)
>>
>> Furthermore, yo
On 10/28/2013 02:52 PM, Roberto Polli wrote:
> Hi @all,
>
> Jan wrote:
> as I promised, I am sending you a proof-of-concept code that
> demonstrates, how we can mock DS in unit tests for library function
> Ok, that's clear.
>
> instead of sending command to real DS instance,
> the
Hello Thierry,
I am not rewriting ldapadd,... methods of "real" DS class, I am in fact
creating MockDS class with custom ldapadd,... methods, _just_ like you suggest
:)
Furthermore, you can view it as a subclass of "real_ds" - even though it is not
a proper Python subclass, it inherits all func
On 10/25/2013 01:36 PM, Jan Rusnacko wrote:
Hello Roberto and Thierry,
as I promised, I am sending you a proof-of-concept code that demonstrates, how
we can mock DS in unit tests for library function (see attachment). You can run
tests just by executing py.test in tests directory.
Only 3 files