OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # that can be found in the LICENSE file. |
| 4 |
| 5 """Tests that recipes have access to names, resources and their package.""" |
| 6 |
| 7 DEPS = [ |
| 8 'path', |
| 9 'python', |
| 10 'step', |
| 11 ] |
| 12 |
| 13 def RunSteps(api): |
| 14 api.step('recipe_name', ['echo', api.name]) |
| 15 api.python('some_resource', api.resource('hello.py')) |
| 16 api.step('package_root', ['echo', api.package_repo_resource('file', 'path')]) |
| 17 |
| 18 def GenTests(api): |
| 19 yield api.test('basic') |
OLD | NEW |