- There is an optional parameter to init_datastore_v3_stub which you can
use to require indexes: require_indexes=True. In fact we initialize our
stub like the following for our unittests:
# this needs to be re-evaluated at every initialization since it's mutable
and tests
# might have overriden it
consistency_policy = eval(
'_datastore_stub_util_module.PseudoRandomHRConsistencyPolicy(probability=0)')
_GAE_TESTBED.init_datastore_v3_stub(
consistency_policy=consistency_policy, require_indexes=True,
use_sqlite=True,
root_path=_gae_app_path)
(this also makes so that it simulates the worst-case consistency for the
datastore - you then need to call
_GAE_TESTBED._test_stub_map.GetStub(_testbed_module.DATASTORE_SERVICE_NAME).Flush()
explicitly when you want to have your entities visible to queries for
example)
- There is also the --require_indexes=True parameter for the dev_appserver
- Finally, you can always have a "staging" project (ie. a separate Google
project for testing) where you can try things out.
Attila
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/8247ffca-34e9-4abd-900d-d518bc2a1eeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.