~jan.greis/maus/1811

« back to all changes in this revision

Viewing changes to tests/unit/test_error_handler.py

Bug in error handler tests - forgot to reset static defaults

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
      doc = error_handler.HandleException(doc, self)  
120
120
 
121
121
  def test_DefaultHandler(self):
 
122
    ErrorHandler.DefaultHandler().error_to_stderr = False
 
123
    ErrorHandler.DefaultHandler().error_to_json = True
 
124
    ErrorHandler.DefaultHandler().on_error = 'none'
122
125
    doc = {}
123
126
    try:
124
127
      raise RuntimeError("Test error 1")