#NEWLINE# @ pytest . fixture #NEWLINE# def logger( monkeypatch ) : #NEWLINE# #INDENT# mock_logger = mock . Mock ( ) #NEWLINE# monkeypatch . setattr ( settings , 'NPLUSONE_LOGGER' , monkeypatch ) #NEWLINE# return mock_logger