File size: 383 Bytes
9019b27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""CLI routing tests (non-interactive paths)."""

from kinetic.cli import main


def test_version():
    assert main(["--version"]) == 0


def test_info():
    assert main(["info"]) == 0


def test_demo_list_via_cli():
    assert main(["demo", "list"]) == 0


def test_run_json():
    code = main(["run", "-i", "Pick up the bottle", "--steps", "300", "--json"])
    assert code == 0