-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shell: Consolidate shell_plus, rich shell detection (#641)
Deprecate shell_plus into shell, pick best shell by default, allow passing custom shell
- Loading branch information
Showing
8 changed files
with
464 additions
and
213 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
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
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,14 @@ | ||
from tmuxp import shell | ||
from tmuxp._compat import string_types | ||
|
||
|
||
def test_detect_best_shell(): | ||
result = shell.detect_best_shell() | ||
assert isinstance(result, string_types) | ||
|
||
|
||
def test_shell_detect(): | ||
assert isinstance(shell.has_bpython(), bool) | ||
assert isinstance(shell.has_ipython(), bool) | ||
assert isinstance(shell.has_ptpython(), bool) | ||
assert isinstance(shell.has_ptipython(), bool) |
Oops, something went wrong.