-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set terminals_available to False when not enabled (#105)
* Set terminals_available False when not enabled * Add some testing on fields * Update comments
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pytest | ||
from traitlets.config.loader import Config | ||
|
||
|
||
@pytest.fixture() | ||
def jp_server_config(): | ||
return Config({"ServerApp": {"terminals_enabled": False}}) | ||
|
||
|
||
async def test_not_enabled(jp_configurable_serverapp): | ||
assert jp_configurable_serverapp().terminals_enabled is False | ||
assert jp_configurable_serverapp().web_app.settings["terminals_available"] is False | ||
assert "terminal_manager" not in jp_configurable_serverapp().web_app.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters