Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(929)

Side by Side Diff: recipe_modules/context/test_api.py

Issue 2985323002: Add support for LUCI_CONTEXT.
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 from recipe_engine import recipe_test_api
6
7 class ContextTestApi(recipe_test_api.RecipeTestApi):
8 @recipe_test_api.mod_test_data
9 @staticmethod
10 def luci_context(ctx):
11 """Completely mocks LUCI_CONTEXT values."""
iannucci 2017/08/04 18:55:51 I would say something like "Sets the initial LUCI_
12 # TODO: more validation
13 if not isinstance(ctx, dict): # pragma: no cover
14 raise TypeError('Expecting a dict')
15 return ctx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698