[tests] update test_config for pytests

see #642
This commit is contained in:
tobi-wan-kenobi 2020-06-02 20:27:52 +02:00
parent 800d603c1f
commit cb30b7175d
2 changed files with 6 additions and 6 deletions

View file

@ -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''

View file

@ -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"])