How to use the aiounittest.helpers.async_test function in aiounittest

To help you get started, we’ve selected a few aiounittest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kwarunek / aiounittest / aiounittest / case.py View on Github external
def __getattribute__(self, name):
        attr = super().__getattribute__(name)
        if name.startswith('test_') and asyncio.iscoroutinefunction(attr):
            return async_test(attr, loop=self.get_event_loop())
        else:
            return attr

aiounittest

Test asyncio code more easily.

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Similar packages