def test_data(): from main import Note ancestor_key = ndb.Key(Note, '123') notes = [ Note(parent=ancestor_key, message='1'), Note(parent=ancestor_key, message='2') ] ndb.put_multi(notes) yield