Skip to content

Instantly share code, notes, and snippets.

@webos-goodies
Created January 21, 2012 06:20
Show Gist options
  • Save webos-goodies/1651682 to your computer and use it in GitHub Desktop.
Save webos-goodies/1651682 to your computer and use it in GitHub Desktop.
Enables high-replication datastore on Kay framework's testing framework
from kay.ext.testutils.gae_test_base import GAETestBase
from google.appengine.api import apiproxy_stub_map
from google.appengine.datastore import datastore_stub_util
class TestSuite(GAETestBase):
def setUp(self):
stub = apiproxy_stub_map.apiproxy.GetStub('datastore_v3')
stub.SetConsistencyPolicy(
datastore_stub_util.TimeBasedHRConsistencyPolicy())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment