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

Unified Diff: appengine_module/testing_utils/testing.py

Issue 1082303002: buildbucket: put_batch endpoint (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: memcache Created 5 years, 8 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
Index: appengine_module/testing_utils/testing.py
diff --git a/appengine_module/testing_utils/testing.py b/appengine_module/testing_utils/testing.py
index a8473d6b840a9095a68124e7888cbbbe6314a538..e599f6a9f1dca60835730e103859c6f6708ac4d8 100644
--- a/appengine_module/testing_utils/testing.py
+++ b/appengine_module/testing_utils/testing.py
@@ -28,6 +28,8 @@ class AppengineTestCase(auto_stub.TestCase): # pragma: no cover
# To be set in tests that wants to use test_app
app_module = None
+ # Datastore consistency policy.
+ consistency_policy = None
Vadim Sh. 2015/04/16 00:12:21 hm.. can you please commit it in a separate CL (ve
nodir 2015/04/16 00:36:20 not needed anymore, since xg transactions are not
def setUp(self):
super(AppengineTestCase, self).setUp()
@@ -40,7 +42,8 @@ class AppengineTestCase(auto_stub.TestCase): # pragma: no cover
self.testbed.init_blobstore_stub()
self.testbed.init_capability_stub()
self.testbed.init_channel_stub()
- self.testbed.init_datastore_v3_stub()
+ self.testbed.init_datastore_v3_stub(
+ consistency_policy=self.consistency_policy)
self.testbed.init_files_stub()
self.testbed.init_logservice_stub()
self.testbed.init_mail_stub()
« appengine/cr-buildbucket/service.py ('K') | « appengine/cr-buildbucket/test/service_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698