def _results_json_from_test_data(self, test_data):
     test_data[bot_test_expectations.ResultsJSON.
               FAILURE_MAP_KEY] = self.FAILURE_MAP
     json_dict = {
         'builder': test_data,
     }
     return bot_test_expectations.ResultsJSON('builder', json_dict)
Exemple #2
0
 def _expectations_from_test_data(self, builder, test_data):
     test_data[bot_test_expectations.ResultsJSON.FAILURE_MAP_KEY] = self.FAILURE_MAP
     json_dict = {
         builder: test_data,
     }
     results = bot_test_expectations.ResultsJSON(builder, json_dict)
     return bot_test_expectations.BotTestExpectations(
         results, self.builders, self.builders.specifiers_for_builder(builder))
 def fake_results_json_for_builder(self, builder):
     return bot_test_expectations.ResultsJSON(builder, 'Dummy content')