From 6c5eea6e8eb4ed6dbd3deaeba5e1ff86161553ee Mon Sep 17 00:00:00 2001 From: Mikhail Ushanov Date: Tue, 17 Nov 2020 01:05:15 +0300 Subject: feat(utils): probe editors in system path Signed-off-by: Mikhail Ushanov --- tests/test_cmd2.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'tests/test_cmd2.py') diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 554f2ba7..2f24f4d7 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1275,24 +1275,6 @@ optional arguments: -s, --shout N00B EMULATION MODE """ -@pytest.mark.skipif(sys.platform.startswith('win'), - reason="utils.which function only used on Mac and Linux") -def test_which_editor_good(): - editor = cmd2.Cmd.DEFAULT_EDITOR - path = utils.which(editor) - - # Assert that the editor was found because some editor should exist on all Mac and Linux systems - assert path - -@pytest.mark.skipif(sys.platform.startswith('win'), - reason="utils.which function only used on Mac and Linux") -def test_which_editor_bad(): - nonexistent_editor = 'this_editor_does_not_exist.exe' - path = utils.which(nonexistent_editor) - # Assert that the non-existent editor wasn't found - assert path is None - - class MultilineApp(cmd2.Cmd): def __init__(self, *args, **kwargs): super().__init__(*args, multiline_commands=['orate'], **kwargs) -- cgit v1.2.1