MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_pset_pager_off

Function test_pset_pager_off

tests/test_main.py:271–279  ·  view source on GitHub ↗
(term_height, term_width, text, pset_pager_mocks)

Source from the content-addressed store, hash-verified

269
270@pytest.mark.parametrize("term_height,term_width,text", test_data, ids=test_ids)
271def test_pset_pager_off(term_height, term_width, text, pset_pager_mocks):
272 cli, mock_echo, mock_echo_via_pager, mock_cli = pset_pager_mocks
273 mock_cli.output.get_size.return_value = termsize(rows=term_height, columns=term_width)
274
275 with mock.patch.object(cli.pgspecial, "pager_config", PAGER_OFF):
276 cli.echo_via_pager(text)
277
278 mock_echo.assert_called()
279 mock_echo_via_pager.assert_not_called()
280
281
282@pytest.mark.parametrize("term_height,term_width,text", test_data, ids=test_ids)

Callers

nothing calls this directly

Calls 1

echo_via_pagerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…