@pytest.fixture(scope=u'session')
def celery_enable_logging():
 return False

@ pytest . fixture ( scope = u'session' ) def celery_enable_logging ( ) : return False
you can override this fixture to enable logging .