I'm trying to compose automated local unit testing for my app engine application, running on python.
It seems that whenever I'm trying to make a call for a transaction which is cross group ((XG=true)), the transaction simply doesn't work and the values are not stored.
Since I know XG transactions require HRD, I've placed these lines:
self.policy = datastore_stub_util.PseudoRandomHRConsistencyPolicy(probability=0)
self.testbed.init_datastore_v3_stub(consistency_policy=self.policy)
to simulate HRD.
However - still nothing.
Should note all functions work very well both in development and production. Just not in unit testing.
Any ideas?