def after_all(context): aiohttpretty.deactivate() context.server_thread.stop()
def pytest_runtest_teardown(item, nextitem): if 'aiohttpretty' in item.keywords: aiohttpretty.deactivate()
def pytest_runtest_teardown(item, nextitem): marker = item.get_marker('aiohttpretty') if marker is not None: aiohttpretty.deactivate()