Commit d1ba73ba authored by Samuel GAIST's avatar Samuel GAIST

[test][config] Update check for non 0 returned value for command failure

With the update to click, the returned value on error has changed.
Therefore, as on Unix systems, 0 means everything is ok and non 0
problem occured, then check that the output is not 0 on command
failure tests.
parent b6dabb21
......@@ -121,13 +121,13 @@ def test_set_get_local_atnt_db():
@nose.tools.with_setup(teardown=cleanup)
def test_set_bad_config_key():
db_config = 'fail'
nose.tools.eq_(call('config', 'set', '--local', db_config, db_config), 1)
nose.tools.assert_not_equal(call('config', 'set', '--local', db_config, db_config), 0)
@nose.tools.with_setup(teardown=cleanup)
def test_get_bad_config_key():
db_config = 'fail'
nose.tools.eq_(call('config', 'get', db_config), 1)
nose.tools.assert_not_equal(call('config', 'get', db_config), 0)
@nose.tools.with_setup(teardown=cleanup)
......
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