Skip to content

Commit

Permalink
tests for custom offset for the enriched print/logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalmei committed Oct 26, 2024
1 parent 62ab72b commit 9aa311d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/core/test_hook_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit 9aa311d

Please sign in to comment.