Skip to content

Commit

Permalink
test(app): add micropy version test
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Jun 5, 2023
1 parent 6632c5b commit 306edf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/app/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,9 @@ def test_main_install(mocker, micropy_obj, runner, dev_flag):

for pkg in packages:
micropy_obj.project.add_package.assert_any_call(pkg, dev=dev_flag)


def test_main_version(runner):
result = runner.invoke(app, ["version"])
assert result.exit_code == 0
assert "Micropy Version:" in result.stdout

0 comments on commit 306edf2

Please sign in to comment.