Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
764983ad
Commit
764983ad
authored
May 30, 2018
by
Theophile GENTILHOMME
Browse files
[test][test_config] Make sure the editor field has a not None value
before tetsing get command
parent
5463868a
Changes
1
Show whitespace changes
Inline
Side-by-side
beat/cmdline/test/test_config.py
View file @
764983ad
...
...
@@ -133,11 +133,13 @@ def test_get_bad_config_key():
@
nose
.
tools
.
with_setup
(
teardown
=
cleanup
)
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
)
def
test_get_editor
():
nose
.
tools
.
eq_
(
call
(
'config'
,
'set'
,
'--local'
,
'editor'
,
'vi'
),
0
)
nose
.
tools
.
eq_
(
call
(
'config'
,
'get'
,
'editor'
),
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment