summaryrefslogtreecommitdiff
path: root/tests/frontend/help.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-01 19:16:32 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-01 19:44:53 +0900
commit54265b7a9e6f493796bcb9c65682a73013e2a600 (patch)
treed178b17ac2e62497b5217da63d65558da894d2cc /tests/frontend/help.py
parentc1b3a483d17337b45c9118ba2580437a89db2271 (diff)
downloadbuildstream-54265b7a9e6f493796bcb9c65682a73013e2a600.tar.gz
tests/frontend: Updating tests to use new error checks
This also fixes #177 - the problem here was solved simply by passing the project directory to `cli.run(project=project...)`
Diffstat (limited to 'tests/frontend/help.py')
-rw-r--r--tests/frontend/help.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/frontend/help.py b/tests/frontend/help.py
index 7eb017c2e..bdafe851b 100644
--- a/tests/frontend/help.py
+++ b/tests/frontend/help.py
@@ -13,7 +13,7 @@ def assert_help(cli_output):
def test_help_main(cli):
result = cli.run(args=['--help'])
- assert result.exit_code == 0
+ result.assert_success()
assert_help(result.output)
@@ -31,5 +31,5 @@ def test_help_main(cli):
])
def test_help(cli, command):
result = cli.run(args=[command, '--help'])
- assert result.exit_code == 0
+ result.assert_success()
assert_help(result.output)