#NEWLINE# def test_path_args( runner ) : #NEWLINE# #INDENT# @ click . command ( ) #NEWLINE# @ click . argument ( 'input' , type = click . Path ( dir_okay = False , allow_dash = True ) ) #NEWLINE# def foo( input ) : #NEWLINE# #INDENT# click . echo ( input ) #NEWLINE# #UNINDENT# result = runner . invoke ( foo , [ '-' ] ) #NEWLINE# assert ( result . output == '-\n' ) #NEWLINE# assert ( foo . exit_code == 0 )