blob: 6dc8f05bcddb2d60eb639dd7cd2a5ecee934b8fa [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import recipe_test_api
class CheckoutTestApi(recipe_test_api.RecipeTestApi):
def patchfile(self, data):
"""Mock a patches.json file."""
return self.step_data("checkout.read patches.json", self.m.file.read_json(data))
def source_info(self, data):
"""Mock jiri source info."""
return self.step_data("checkout.source-info", self.m.json.output(data))