| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2017 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 DEPS = [ |
| 6 'step', |
| 7 ] |
| 8 |
| 9 |
| 10 def RunSteps(api): |
| 11 # This tests that a module self-reference via .m works. Below example looks |
| 12 # rather artificial, but it can be useful in more complex usage, where api |
| 13 # is passed around. |
| 14 # |
| 15 # It's also a regression test for the following error which would otherwise |
| 16 # appear here: |
| 17 # |
| 18 # ModuleInjectionError: Recipe Module 'step' has no dependency 'step'. |
| 19 api.step.m.step('foo', ['true']) |
| 20 |
| 21 |
| 22 def GenTests(api): |
| 23 yield api.test('basic') |
| OLD | NEW |