Commit 764983ad authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

[test][test_config] Make sure the editor field has a not None value

before tetsing get command
parent 5463868a
...@@ -133,11 +133,13 @@ def test_get_bad_config_key(): ...@@ -133,11 +133,13 @@ def test_get_bad_config_key():
@nose.tools.with_setup(teardown=cleanup) @nose.tools.with_setup(teardown=cleanup)
def test_get_token(): def test_get_token():
nose.tools.eq_(call('config', 'get', 'user'), 0) nose.tools.eq_(call('config', 'set', '--local', 'token', '12we3f45fgh'), 0)
nose.tools.eq_(call('config', 'get', 'token'), 0)
@nose.tools.with_setup(teardown=cleanup) @nose.tools.with_setup(teardown=cleanup)
def test_get_editor(): def test_get_editor():
nose.tools.eq_(call('config', 'set', '--local', 'editor', 'vi'), 0)
nose.tools.eq_(call('config', 'get', 'editor'), 0) nose.tools.eq_(call('config', 'get', 'editor'), 0)
......
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