#NEWLINE# @ patch ( 'pybuilder.plugins.python.install_dependencies_plugin.get_package_version' , return_value = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# @ patch ( 'pybuilder.plugins.python.install_dependencies_plugin.execute_command' , return_value = 0 ) #NEWLINE# def test_should_install_requirements_file_dependency( self , exec_command , get_package_version ) : #NEWLINE# #INDENT# dependency = RequirementsFile ( 'requirements.txt' ) #NEWLINE# install_dependency ( exec_command . logger , self . project , dependency ) #NEWLINE# exec_command ( ( PIP_EXEC_STANZA + [ 'install' , '-r' , 'requirements.txt' ] ) , ANY , env = ANY , shell = False )