[pytest-dev] Deprecating "calling" Nodes

Bruno Oliveira nicoddemus at gmail.com
Wed Nov 7 16:41:01 EST 2018


Hi Ronny,


On Wed, Nov 7, 2018 at 6:56 PM RonnyPfannschmidt <
opensource at ronnypfannschmidt.de> wrote:

> main reason being that if direct "calling" is no longer valid behavior
> for clients and down streams, the logic can be moved to more
> controllable and testable places
>
>
> in order to facilitate this, i'd create a NodeMetaClass  which has
> support methods for instance creation and
> allows for custom functions/methods to be called.
>

Makes sense, I like the general idea. Could you please post a quick example
to illustrate what you mean? Doesn't need to be working code.

Also you mean to use classmethods for instance creation?

Cheers,
Bruno.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20181107/42dfb347/attachment.html>


More information about the pytest-dev mailing list