I have an ndb.Model
:
class Product(ndb.Model):
pass
- it needs to be categorized in a category tree.
- the categories are NOT dynamic, meaning they cannot change.
- prefferably not implemented using a
class Category(ndb.Model)
because having the categories in the datastore means that you rely on them being there and in the event of testing that means creating them over and over again.
What is the best way of implementing this based on the criteria above ?