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

Function pset_pager_mocks

tests/test_main.py:259–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258@pytest.fixture
259def pset_pager_mocks():
260 cli = PGCli()
261 cli.watch_command = None
262 with (
263 mock.patch("pgcli.main.click.echo") as mock_echo,
264 mock.patch("pgcli.main.click.echo_via_pager") as mock_echo_via_pager,
265 mock.patch.object(cli, "prompt_app") as mock_app,
266 ):
267 yield cli, mock_echo, mock_echo_via_pager, mock_app
268
269
270@pytest.mark.parametrize("term_height,term_width,text", test_data, ids=test_ids)

Callers

nothing calls this directly

Calls 1

PGCliClass · 0.90

Tested by

no test coverage detected