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 4cdd703 commit c94d477Copy full SHA for c94d477
src/sage/cli/notebook_cmd_test.py
@@ -26,11 +26,12 @@ def test_jupyterlab_explicitly():
26
assert args.notebook == "jupyterlab"
27
28
29
-def test_invalid_notebook_choice():
+def test_invalid_notebook_choice(capsys):
30
parser = argparse.ArgumentParser()
31
JupyterNotebookCmd.extend_parser(parser)
32
with pytest.raises(SystemExit):
33
parser.parse_args(["--notebook", "invalid"])
34
+ assert "argument -n/--notebook: invalid choice: 'invalid'" in capsys.readouterr()[1]
35
36
37
def test_help():
0 commit comments