Fix other db CI builds with other home location

This commit is contained in:
Griatch 2020-12-20 14:30:13 +01:00
parent 4e1a2fda82
commit b0d85a3ae4

View file

@ -216,8 +216,12 @@ 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
tools, consumables = _MockRecipe.seed()
with override_settings(DEFAULT_HOME=f"#{homeroom.id}"):
tools, consumables = _MockRecipe.seed()
# this should be a normal successful crafting
recipe = _MockRecipe(self.crafter, *(tools + consumables))