eugeniy / pytest-tornado

A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications.
Apache License 2.0
121 stars 34 forks source link

Mocking decorator of class handler post or get method #26

Closed sonic182 closed 5 years ago

sonic182 commented 6 years ago

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