Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 3, 2022
1 parent 300f54f commit c43a094
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ def test_shell_command_override(
pytest.importorskip("traitlets", minversion=min_traitlets)
argv = shlex.split(f"--ServerApp.terminado_settings={terminado_settings}")
app = jp_configurable_serverapp(argv=argv)
if os.name == 'nt':
assert app.web_app.settings["terminal_manager"].shell_command in (expected_shell, ' '.join(expected_shell))
if os.name == "nt":
assert app.web_app.settings["terminal_manager"].shell_command in (
expected_shell,
" ".join(expected_shell),
)
else:
assert app.web_app.settings["terminal_manager"].shell_command == expected_shell

0 comments on commit c43a094

Please sign in to comment.