1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
"""Basic testing for CLI."""
from buienradar.__main__ import main
def test_main_info():
"""Test if we can call the main function."""
# use simulation interface
args = ['-v']
# test calling results in the loop close cleanly
assert main(args) is None
def test_main_debug():
"""Test if we can call the main function."""
# use simulation interface
args = ['-vv']
# test calling results in the loop close cleanly
assert main(args) is None
def test_main_usexml():
"""Test if we can call the main function."""
# use simulation interface
args = ['--usexml']
# test calling results in the loop close cleanly
assert main(args) is None
|