From 9aa311ddf071038e05e8e73f7db85f0a6aa9862d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Sampaio?= Date: Fri, 25 Oct 2024 22:36:12 -0300 Subject: [PATCH] tests for custom offset for the enriched print/logging messages --- tests/core/test_hook_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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')