We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c46da6c commit cb72eb9Copy full SHA for cb72eb9
tests/test_commands.py
@@ -1,6 +1,7 @@
1
import pytest
2
import secrets
3
from manage import commands
4
+from manage.exceptions import NoInstallsError
5
6
7
def test_pymanager_help_command(assert_log):
@@ -46,4 +47,11 @@ def test_help_with_error_command(assert_log):
46
47
48
def test_exec_with_literal_default():
49
cmd = commands.load_default_config(None)
- assert cmd.get_install_to_run("default", None)
50
+ try:
51
+ assert cmd.get_install_to_run("default", None)
52
+ except ValueError:
53
+ # This is our failure case!
54
+ raise
55
+ except NoInstallsError:
56
+ # This is also an okay result, if the default runtime isn't installed
57
+ pass
0 commit comments