blob: 097eb41c493fd0f578baa41b48ed66a72ddc1713 [file] [log] [blame]
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Tests that recipes have access to names, resources and their repo."""
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
DEPS = [
'path',
'step',
]
def RunSteps(api):
api.step('recipe_name', ['echo', 'recipe name is', api.name])
api.step('some_resource', ['python', api.resource('hello.py')])
api.step('repo_root', ['echo', api.repo_resource('file', 'path')])
def GenTests(api):
yield api.test('basic')