#NEWLINE# @ mock . patch ( 'mkdocs.commands.build.build' , autospec = True ) #NEWLINE# def test_json( self , mock_build ) : #NEWLINE# #INDENT# result = self . runner . invoke ( cli . cli , [ 'json' ] , catch_exceptions = False ) #NEWLINE# self . assertEqual ( result . exit_code , 0 ) #NEWLINE# self . assertEqual ( mock_build . call_count , 1 )