예제 #1
0
파일: cli_tests.py 프로젝트: jstrachan/deft
 def test_throws_user_error_if_no_editor_specified(self):
     cli.find_editor_command({})
예제 #2
0
파일: cli_tests.py 프로젝트: jstrachan/deft
 def test_prefers_visual_if_deft_editor_not_set(self):
     assert_that(cli.find_editor_command({'EDITOR': 'E', 'VISUAL': 'V'}),
                 equal_to('V'))
예제 #3
0
파일: cli_tests.py 프로젝트: jstrachan/deft
 def test_will_use_editor_as_last_resort(self):
     assert_that(cli.find_editor_command({'EDITOR': 'E'}),
                 equal_to('E'))
예제 #4
0
파일: cli_tests.py 프로젝트: jstrachan/deft
 def test_prefers_deft_editor_if_set(self):
     assert_that(cli.find_editor_command({'DEFT_EDITOR': 'D', 'EDITOR': 'E', 'VISUAL': 'V'}),
                 equal_to('D'))