[tracker-miners/sam/index-location: 8/21] functional-tests: Improve cli test
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/index-location: 8/21] functional-tests: Improve cli test
- Date: Thu, 9 Jul 2020 23:04:26 +0000 (UTC)
commit 2d90222c85c72679338ef283e5d34722fe89cfa0
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Jul 8 01:00:24 2020 +0200
functional-tests: Improve cli test
tests/functional-tests/cli.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/cli.py b/tests/functional-tests/cli.py
index 536b50e3e..225f598be 100644
--- a/tests/functional-tests/cli.py
+++ b/tests/functional-tests/cli.py
@@ -51,8 +51,12 @@ class TestCli(fixtures.TrackerCommandLineTestCase):
# This will generate an invalid .mp3 file.
testfile = self.create_test_file('test-data/content.mp3')
- with self.assertRaises(fixtures.CliError) as e:
- self.run_cli(['index', str(testfile)])
+ try:
+ with self.assertRaises(fixtures.CliError) as e:
+ output = self.run_cli(['index', str(testfile)])
+ except AssertionError as e:
+ print(f"CLI output:\n{output}")
+ raise
#print(e.exception)
#assert 'foo' in e.exception.args[0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]