#NEWLINE# @ pytest . fixture #NEWLINE# def mock_ansible_inventory( ) : #NEWLINE# #INDENT# inv_path = os . path . join ( c . MASTER_DIR , '.vagrant/provisioners/ansible/vagrant_inventory' ) #NEWLINE# inv_file = os . path . join ( inv_path , 'vagrant_ansible_inventory' ) #NEWLINE# os . makedirs ( inv_path ) #NEWLINE# with open ( inv_file , 'w' ) as fp : #NEWLINE# #INDENT# fp . write ( 'default ansible_ssh_host=127.0.0.1 ' )