eugeniy/pytest-tornado

Mocking decorator of class handler post or get method

Closed this issue · 0 comments

I'm trying to mock a decorator like this:

class MyHandler(BaseHandler):
    """Hander."""

    @decorator_want_to_mock(arg1, arg2)
    async def post(self):
        ....

Is that possible? the app is loaded by the fixture app I don't find the way to patch it