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

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

Issue 1921893003: Roll recipe_engine to 2f86f02a302172514bf282684e0a4aa18b683e41 (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 7 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
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from recipe_engine import recipe_test_api 5 from recipe_engine import recipe_test_api
6 from recipe_engine.config_types import Path, NamedBasePath 6 from recipe_engine.config_types import Path, NamedBasePath
7 7
8 class InfraPathsTestApi(recipe_test_api.RecipeTestApi): 8 class InfraPathsTestApi(recipe_test_api.RecipeTestApi): #pragma: no cover
9 @recipe_test_api.mod_test_data 9 @recipe_test_api.mod_test_data
10 @staticmethod 10 @staticmethod
11 def exists(*paths): 11 def exists(*paths):
12 assert all(isinstance(p, Path) for p in paths) 12 assert all(isinstance(p, Path) for p in paths)
13 return paths 13 return paths
14 14
15 def __getitem__(self, name): 15 def __getitem__(self, name):
16 return Path(NamedBasePath(name)) 16 return Path(NamedBasePath(name))
OLDNEW
« no previous file with comments | « recipe_modules/git/example.expected/set_got_revision.json ('k') | recipe_modules/presubmit/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698