Skip to content

Commit

Permalink
Test compatibility with click 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
geier committed Oct 9, 2018
1 parent 87a5377 commit 914f541
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,10 @@ def test_print_ics_command(runner):
# Non existing file
result = runner.invoke(main_khal, ['printics', 'nonexisting_file'])
assert result.exception
assert 'Error: Invalid value for "ics": Could not open file: ' \
in result.output
assert ('Error: Invalid value for "ics": Could not open file: ' \
in result.output or \
'Error: Invalid value for "[ICS]": Could not open file:' \
in result.output)

# Run on test files
result = runner.invoke(main_khal, ['printics', _get_ics_filepath('cal_d')])
Expand Down

0 comments on commit 914f541

Please sign in to comment.