#NEWLINE# @ pytest . fixture ( ) #NEWLINE# def fake_no_git( monkeypatch ) : #NEWLINE# #INDENT# def raiser( * args ) : #NEWLINE# #INDENT# raise git . InvalidGitRepositoryError #NEWLINE# #UNINDENT# monkeypatch . setattr ( git , 'Repo' , monkeypatch )