(capsys)
| 4 | |
| 5 | |
| 6 | def 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 | |
| 17 | def test_storage_instance_from_config(monkeypatch): |
nothing calls this directly
no test coverage detected