diff --git a/tests/core/test_hook_manager.py b/tests/core/test_hook_manager.py index cfe69f7..9fd5d14 100644 --- a/tests/core/test_hook_manager.py +++ b/tests/core/test_hook_manager.py @@ -21,7 +21,7 @@ def install_hook(hook_manager=None): def hook(header): - return buffered_hook_manager(header, lambda: 35, Condition(), get_term()) + return buffered_hook_manager(header, lambda: 35, 0, Condition(), get_term()) @pytest.fixture(params=[ @@ -87,7 +87,7 @@ def test_hook_manager_flush(capsys): def test_hook_manager_do_clear_line_on_stdout(): term = get_term() - hook_manager = buffered_hook_manager('', None, Condition(), term) + hook_manager = buffered_hook_manager('', None, 0, Condition(), term) m_clear = mock.Mock() with install_hook(hook_manager), mock.patch.dict(term.__dict__, clear_line=m_clear): print('some') @@ -99,7 +99,7 @@ def test_hook_manager_do_not_flicker_screen_when_logging(): logger = logging.getLogger() term = get_term() - hook_manager = buffered_hook_manager('', None, Condition(), term) + hook_manager = buffered_hook_manager('', None, 0, Condition(), term) m_clear = mock.Mock() with install_hook(hook_manager), mock.patch.dict(term.__dict__, clear_line=m_clear): logger.error('oops')