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

Unified Diff: dashboard/dashboard/mr_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/mr.py ('k') | dashboard/dashboard/testing_common.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/mr_test.py
diff --git a/dashboard/dashboard/mr_test.py b/dashboard/dashboard/mr_test.py
index cf04cc408a9b962b048cd89f0cde164f22587f4d..ababfda5a42801b0b502aaca928b60248180b84e 100644
--- a/dashboard/dashboard/mr_test.py
+++ b/dashboard/dashboard/mr_test.py
@@ -4,6 +4,8 @@
import datetime
import unittest
+import webapp2
+import webtest
from mapreduce import operation as op
@@ -29,6 +31,13 @@ _TESTS = {
class MrTest(testing_common.TestCase):
+ def setUp(self):
+ super(MrTest, self).setUp()
+ app = webapp2.WSGIApplication([])
+ self.testapp = webtest.TestApp(app)
+ self.SetCurrentUser('foo@bar.com', is_admin=True)
+ self.PatchDatastoreHooksRequest()
+
def _ExecOperation(self, operation):
"""Helper method to run a datastore mutation operation.
« no previous file with comments | « dashboard/dashboard/mr.py ('k') | dashboard/dashboard/testing_common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698