mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
13 lines
371 B
Python
13 lines
371 B
Python
from vdirsyncer import exceptions
|
|
from vdirsyncer.cli.utils import handle_cli_error
|
|
|
|
|
|
def test_handle_cli_error(capsys):
|
|
try:
|
|
raise exceptions.InvalidResponse('ayy lmao')
|
|
except BaseException:
|
|
handle_cli_error()
|
|
|
|
out, err = capsys.readouterr()
|
|
assert 'returned something vdirsyncer doesn\'t understand' in err
|
|
assert 'ayy lmao' in err
|