File: test_cli.py

package info (click to toggle)
python-buienradar 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,380 kB
  • sloc: xml: 9,450; python: 3,432; makefile: 5
file content (29 lines) | stat: -rwxr-xr-x 694 bytes parent folder | download | duplicates (2)
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