From b0d85a3ae4fa15067dca9b6b8d79a3e5b682e618 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 20 Dec 2020 14:30:13 +0100 Subject: [PATCH] Fix other db CI builds with other home location --- evennia/contrib/crafting/tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/evennia/contrib/crafting/tests.py b/evennia/contrib/crafting/tests.py index 985ac0bdf9..7c5ac6e4ff 100644 --- a/evennia/contrib/crafting/tests.py +++ b/evennia/contrib/crafting/tests.py @@ -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))