#NEWLINE# def test_autoupdate_local_hooks( tempdir_factory ) : #NEWLINE# #INDENT# git_path = git_dir ( tempdir_factory ) #NEWLINE# config = config_with_local_hooks ( ) #NEWLINE# path = add_config_to_repo ( git_path , config ) #NEWLINE# runner = Runner ( path ) #NEWLINE# assert ( autoupdate ( tempdir_factory ) == 0 ) #NEWLINE# new_config_writen = load_config ( runner . config_file_path ) #NEWLINE# assert ( len ( new_config_writen ) == 1 ) #NEWLINE# assert ( new_config_writen [ 0 ] == config )