Commit 4126b968 authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

testing/khal: fix failing test due to changed output

parent 167fd390
......@@ -25,7 +25,9 @@ depends="
makedepends="py3-setuptools py3-setuptools_scm py3-sphinx py3-sphinxcontrib-newsfeed"
checkdepends="py3-pytest py3-freezegun vdirsyncer"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz
tests-account-for-changed-error-message.patch
"
build() {
python3 setup.py build
......@@ -55,4 +57,7 @@ package() {
install -Dm644 doc/build/man/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
}
sha512sums="bc695b1f44e6d121a04431f971150799355e39f0893eec06371cf51e6eefa10c9d2f2c7ebcf15f4189cd4a8ad29806fb44e1ceeb6b8e43a0f11db6076006c222 khal-0.10.3.tar.gz"
sha512sums="
bc695b1f44e6d121a04431f971150799355e39f0893eec06371cf51e6eefa10c9d2f2c7ebcf15f4189cd4a8ad29806fb44e1ceeb6b8e43a0f11db6076006c222 khal-0.10.3.tar.gz
7e8d269cae4f9906dccda30e9887c0cb39710381b258f453dc9a840f4af7f2590dff8e2de5d37b1e635f085a8dd163d6f4d463fc43f3e6629f040469f266f100 tests-account-for-changed-error-message.patch
"
diff --git a/tests/cli_test.py b/tests/cli_test.py
index 8938e3a..4fcf7f8 100644
--- a/tests/cli_test.py
+++ b/tests/cli_test.py
@@ -676,6 +676,8 @@ def test_print_ics_command(runner):
in result.output or
'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 or
+ 'Error: Invalid value for \'[ICS]\': \'nonexisting_file\': No such file or directory'
in result.output)
# Run on test files
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment