MCPcopy Index your code
hub / github.com/pimutils/vdirsyncer / test_handle_cli_error

Function test_handle_cli_error

tests/system/cli/test_utils.py:6–14  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

4
5
6def test_handle_cli_error(capsys):
7 try:
8 raise exceptions.InvalidResponse('ayy lmao')
9 except BaseException:
10 handle_cli_error()
11
12 out, err = capsys.readouterr()
13 assert 'returned something vdirsyncer doesn\'t understand' in err
14 assert 'ayy lmao' in err
15
16
17def test_storage_instance_from_config(monkeypatch):

Callers

nothing calls this directly

Calls 1

handle_cli_errorFunction · 0.90

Tested by

no test coverage detected