File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -953,7 +953,7 @@ def get_args(args=None):
953953def main (test_args = None ):
954954 args = get_args (test_args )
955955 f_path = Path (args .input_file )
956- if f_path .exists :
956+ if f_path .exists () :
957957 f = defcon .Font (f_path )
958958 run (f , args )
959959
Original file line number Diff line number Diff line change @@ -225,6 +225,19 @@ def test_main():
225225 assert read_file (fea_example ) == read_file (fea_temp )
226226
227227
228+ def test_main_invalid_input_file (capsys ):
229+ '''
230+ invalid input file
231+ '''
232+ ufo_path = TEST_DIR / 'invalid_input_file.ufo'
233+ args = Defaults ()
234+ args .input_file = ufo_path
235+ main ([str (ufo_path )])
236+ out , err = capsys .readouterr ()
237+
238+ assert 'does not exist' in out
239+
240+
228241def test_default_rtl ():
229242 args = Defaults ()
230243 ufo_path = TEST_DIR / 'kern_example_rtl.ufo'
You can’t perform that action at this time.
0 commit comments