Including logger in common's __all__.

This commit is contained in:
Roland 2022-10-27 20:21:15 -06:00
parent 561dacf226
commit a880bf12f8
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 4 additions and 1 deletions

View file

@ -40,6 +40,7 @@ ch.setFormatter(formatter)
logger.addHandler(ch)
__all__ = [
'logger',
'Base',
'ModelHelper',
'get_model_by_table_name',

View file

@ -277,8 +277,10 @@ def wrol_mode_fixture(test_config, test_download_manager):
@pytest.fixture
def mock_create_subprocess_shell():
def mocker(communicate_return=None, return_code=None):
def mocker(communicate_return=None, return_code=None, communicate_side_effect = None):
async def communicate(*a, **kw):
if communicate_side_effect:
return communicate_side_effect()
return communicate_return or (None, None)
async def create_subprocess_shell(*a, **kw):