mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-24 17:06:18 -05:00
Including logger in common's __all__.
This commit is contained in:
parent
561dacf226
commit
a880bf12f8
2 changed files with 4 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ ch.setFormatter(formatter)
|
|||
logger.addHandler(ch)
|
||||
|
||||
__all__ = [
|
||||
'logger',
|
||||
'Base',
|
||||
'ModelHelper',
|
||||
'get_model_by_table_name',
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue