Skip to content Skip to sidebar Skip to footer

Google App Engine Require Indexes For Tests

I just got bit by my functional tests not using the same settings as my dev_appserver. I currently run my dev_appserver (non-rel) with require_indexes. How to I force my test be

Solution 1:

Try adding { "require_indexes" : True } as a keyword argument to init_datastore_v3_stub()

You can look through (and step through) the SDK code to see how that parameter is eventually passed into the datastore stub.

Post a Comment for "Google App Engine Require Indexes For Tests"