class_docstr: TestResult contains information useful for tracking test results
class_docstr_tok: ["TestResult","contains","information","useful","for","tracking","test","results"]
docstr: Params
      publication_results (list[dict]):
          A list of dictionaries that describe the result of running publications tests.
          Each dictionary should contain the following:
  
          - output_descriptor: The output the test is run on
          - expectation: String describing the test: (e.g. "[$.slack] should be value")
          - error: If an ERROR was encountered, this is the error
          - failure: If the test did not pass, describe why
          - success: True if test passed. False otherwise.
docstr_tok: ["Params","publication_results","(","list","[","dict","]",")",":","A","list","of","dictionaries","that","describe","the","result","of","running","publications","tests",".","Each","dictionary","should","contain","the","following",":","-","output_descriptor",":","The","output","the","test","is","run","on","-","expectation",":","String","describing","the","test",":","(","e.g",".","``","[","$",".slack","]","should","be","value","''",")","-","error",":","If","an","ERROR","was","encountered",",","this","is","the","error","-","failure",":","If","the","test","did","not","pass",",","describe","why","-","success",":","True","if","test","passed",".","False","otherwise","."]
code: def set_publication_results(self, publication_results):
      """
  
      Params
          publication_results (list[dict]):
              A list of dictionaries that describe the result of running publications tests.
              Each dictionary should contain the following:
  
              - output_descriptor: The output the test is run on
              - expectation: String describing the test: (e.g. "[$.slack] should be value")
              - error: If an ERROR was encountered, this is the error
              - failure: If the test did not pass, describe why
              - success: True if test passed. False otherwise.
      """
      self._publication_results = publication_results
  
imports: from collections import defaultdict
  import textwrap
  from streamalert.shared import rule
  from streamalert.shared.logger import get_logger
  from streamalert_cli.test.event import TestEvent
  from streamalert_cli.test.format import format_green, format_red, format_underline
label_desc: Use image node_id 27 for calling the TestResult obj's underlying member method code with example usage: obj.set_publication_results(publication_results) without return types