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

Unified Diff: telemetry/telemetry/story/expectations.py

Issue 3008203003: [Telemetry] Expose disable_stories in StoryExpectations api. (Closed)
Patch Set: Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/story/expectations.py
diff --git a/telemetry/telemetry/story/expectations.py b/telemetry/telemetry/story/expectations.py
index 4f948d6976038feb39ea823993e674c5f91768a4..3c8be96423bbf8d201748f8741c8073d8050cbc0 100644
--- a/telemetry/telemetry/story/expectations.py
+++ b/telemetry/telemetry/story/expectations.py
@@ -24,6 +24,10 @@ class StoryExpectations(object):
self.SetExpectations()
self._Freeze()
+ @property
+ def disabled_stories(self):
nednguyen 2017/09/07 21:43:21 the name here "disabled_stories" but then this ret
rnephew (Reviews Here) 2017/09/11 17:31:55 Switched to calling it AsDict() as recomended by J
+ return self._expectations
+
def GetBrokenExpectations(self, story_set):
story_set_story_names = [s.name for s in story_set.stories]
invalid_story_names = []
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698