pytest-twisted icon indicating copy to clipboard operation
pytest-twisted copied to clipboard

Do we really need our own test decorators vs. using t.i.d.inlineCallbacks

Open altendky opened this issue 6 years ago • 3 comments

https://github.com/pytest-dev/pytest-twisted/blob/16abc595c153de8f4ea78bf7b1de542a8d13f3e8/pytest_twisted.py#L104-L106

likewise for other test decorators

altendky avatar Nov 18 '19 14:11 altendky

yes, t.i.d.inlineCallbacks removes the fixture kwargs from the function it decorates, the documentation is here: https://github.com/pytest-dev/pytest-twisted#inlinecallbacks

graingert avatar Nov 21 '19 10:11 graingert

@altendky this issue tracker is for bugs and feature suggestions, questions like this would be better addressed to https://webchat.freenode.net/#pylib or https://mail.python.org/mailman/listinfo/pytest-dev

graingert avatar Nov 21 '19 11:11 graingert

@graingert this was a reminder for me to look into this. I am the maintainer of this project so I would think I would be allowed to create the tickets in it that I want. I remembered the way fixtures work presently but I don't remember if they have to work that way and I was more referring to the tests themselves.

altendky avatar Nov 21 '19 14:11 altendky