refactor Food tests to use factory_boy fixture factories

This commit is contained in:
smilerz
2021-11-03 13:43:41 -05:00
parent 6eec3d18fe
commit a035e02288
5 changed files with 67 additions and 20 deletions

View File

@ -139,6 +139,7 @@ class TreeModel(MP_Node):
return self.get_children().count()
# use self.objects.get_or_create() instead
@classmethod
def add_root(self, **kwargs):
with scopes_disabled():