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

Unified Diff: dashboard/dashboard/debug_alert_test.py

Issue 1549583002: In /graph_json, check internal_only on Test entity and skip test for all Row entities. (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Fixed assertions Created 5 years 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 | « dashboard/dashboard/debug_alert.py ('k') | dashboard/dashboard/graph_csv.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/debug_alert_test.py
diff --git a/dashboard/dashboard/debug_alert_test.py b/dashboard/dashboard/debug_alert_test.py
index b8954567d4ec62f6fd68b6ae91d57a32b4863d6c..30edd49252eb8f59b90841d1db68cb0ababd67ad 100644
--- a/dashboard/dashboard/debug_alert_test.py
+++ b/dashboard/dashboard/debug_alert_test.py
@@ -30,6 +30,7 @@ class DebugAlertTest(testing_common.TestCase):
app = webapp2.WSGIApplication(
[('/debug_alert', debug_alert.DebugAlertHandler)])
self.testapp = webtest.TestApp(app)
+ self.PatchDatastoreHooksRequest()
def _AddSampleData(self):
"""Adds a Test and Row entities, and returns the Test key."""
@@ -147,7 +148,7 @@ class DebugAlertTest(testing_common.TestCase):
def testFetchLatestRows(self):
test_key = self._AddSampleData()
- rows = debug_alert._FetchLatestRows(test_key, 4)
+ rows = debug_alert._FetchLatestRows(test_key.get(), 4)
revisions = [r.revision for r in rows]
self.assertEqual([316, 317, 318, 319], revisions)
« no previous file with comments | « dashboard/dashboard/debug_alert.py ('k') | dashboard/dashboard/graph_csv.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698