parent
800d603c1f
commit
cb30b7175d
2 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
# pylint: disable=C0111,R0903,W1401
|
||||
|
||||
""" Execute command in shell and print result
|
||||
r""" Execute command in shell and print result
|
||||
|
||||
Few command examples:
|
||||
'ping -c 1 1.1.1.1 | grep -Po '(?<=time=)\d+(\.\d+)? ms''
|
||||
|
|
|
@ -88,11 +88,11 @@ def test_all_modules():
|
|||
assert os.path.exists(os.path.join(base, "contrib", pyname)) \
|
||||
or os.path.exists(os.path.join(base, "core", pyname))
|
||||
|
||||
#def test_list_output(mocker):
|
||||
# mocker.patch("core.config.sys")
|
||||
# cfg = core.config.Config(["-l", "themes"])
|
||||
# cfg = core.config.Config(["-l", "modules"])
|
||||
# cfg = core.config.Config(["-l", "modules-rst"])
|
||||
def test_list_output(mocker):
|
||||
mocker.patch("core.config.sys")
|
||||
cfg = core.config.Config(["-l", "themes"])
|
||||
cfg = core.config.Config(["-l", "modules"])
|
||||
cfg = core.config.Config(["-l", "modules-rst"])
|
||||
|
||||
def test_missing_parameter():
|
||||
cfg = core.config.Config(["-p", "test.key"])
|
||||
|
|
Loading…
Reference in a new issue