class Record(ndb.Model):
notes = ndb.TextProperty()
last_updated = ndb.DateTimeProperty(auto_now=True)
Unit Test setup part:
record2 = Record()
record2.last_updated = previous_date
record2.put()
Therefore, I cannot emulate an old record for my unit testing. How to override this field without changing the model?
source
share