Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: assert_equals in yaml python blocks

by
Leonardo Pistone
- 09/25/2014 07:20:49
Hi Nicolas,

Yes, it's probably the same few lines that are used in behave for the
same purpose.

I see what you mean, it's only a few lines, but still I feel that odoo
is already a huge monolithic blob, and we should probably not fear too
much having some python dependencies.

More in general, I'm slowly getting frustrated with yaml tests, and I
am considering whether tools like nose could make life easier in many
ways for writing python tests.

This is of course a broader subject (the future of testing in odoo)
and it will be a pleasure to discuss that with you and the others when
we have the occasion.

Thanks!

On Thu, Sep 25, 2014 at 1:07 PM, Nicolas Bessi
<nicolas.bessi@camptocamp.com> wrote:
> Hello,
>
> After having a look at:
>
> https://github.com/nose-devs/nose/blob/master/nose/tools/trivial.py#L33
>
> We can see that nose only expose unittest.TestCase assertion method and is
> is done with 10 lines.
> Maybe we can take that code back in Odoo providing a helper addons or
> whatever instead of adding nose as a dependency.
>
> My two cents
>
> Nicolas