Skip to content

Commit d660015

Browse files
committed
add test to ensure toggling a missing extension raises an error
1 parent fc7add5 commit d660015

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/extension/test_serverextension.py

+8
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,11 @@ def test_server_extension_apps(jp_env_config_path, jp_extension_environ):
134134
def test_server_extension_app():
135135
app = ServerExtensionApp()
136136
app.launch_instance(["list"])
137+
138+
139+
def test_toggle_missing_server_extension(jp_env_config_path, capsys):
140+
app = ToggleServerExtensionApp()
141+
app.extra_args = ["missingextension"]
142+
app.start()
143+
captured = capsys.readouterr()
144+
assert "Validation failed: The module 'badextension' could not be found." in captured.err

0 commit comments

Comments
 (0)