Fix other db CI builds with other home location

This commit is contained in:
Griatch 2020-12-20 14:30:13 +01:00
parent 1cccc527fd
commit 3739b7b11e

View file

@ -216,7 +216,11 @@ class TestCraftingRecipe(TestCase):
def test_seed__succcess(self):
"""Test seed helper classmethod"""
# needed for other dbs to pass seed
homeroom = create_object(key="HomeRoom", nohome=True)
# call classmethod directly
with override_settings(DEFAULT_HOME=f"#{homeroom.id}"):
tools, consumables = _MockRecipe.seed()
# this should be a normal successful crafting