Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tests/test_commands.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
import secrets
from manage import commands
from manage.exceptions import NoInstallsError


def test_pymanager_help_command(assert_log):
Expand Down Expand Up @@ -46,4 +47,11 @@

def test_exec_with_literal_default():
cmd = commands.load_default_config(None)
assert cmd.get_install_to_run("default", None)
try:
assert cmd.get_install_to_run("default", None)
except ValueError:

Check warning on line 52 in tests/test_commands.py

View check run for this annotation

Codecov / codecov/patch

tests/test_commands.py#L52

Added line #L52 was not covered by tests
# This is our failure case!
raise
except NoInstallsError:

Check warning on line 55 in tests/test_commands.py

View check run for this annotation

Codecov / codecov/patch

tests/test_commands.py#L54-L55

Added lines #L54 - L55 were not covered by tests
# This is also an okay result, if the default runtime isn't installed
pass

Check warning on line 57 in tests/test_commands.py

View check run for this annotation

Codecov / codecov/patch

tests/test_commands.py#L57

Added line #L57 was not covered by tests