From 1ebb41d59244e7dca38b2ed1d8bb75e919380a74 Mon Sep 17 00:00:00 2001 From: henddher Date: Fri, 22 Oct 2021 16:43:16 -0500 Subject: [PATCH 1/2] Fixes broken tests in crafting contrib. --- evennia/contrib/crafting/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evennia/contrib/crafting/tests.py b/evennia/contrib/crafting/tests.py index 3c3dfa1452..9200c9426b 100644 --- a/evennia/contrib/crafting/tests.py +++ b/evennia/contrib/crafting/tests.py @@ -31,6 +31,8 @@ class TestCraftUtils(TestCase): { "crucible steel": example_recipes.CrucibleSteelRecipe, "leather": example_recipes.LeatherRecipe, + "fireball": example_recipes.FireballRecipe, + "heal": example_recipes.HealingRecipe, "oak bark": example_recipes.OakBarkRecipe, "pig iron": example_recipes.PigIronRecipe, "rawhide": example_recipes.RawhideRecipe, From c15687fcb77ade8dba9aee15b300c36f791b7c9c Mon Sep 17 00:00:00 2001 From: henddher Date: Fri, 22 Oct 2021 17:31:32 -0500 Subject: [PATCH 2/2] Addition of test for persisted field of type dictionary. --- evennia/utils/tests/test_dbserialize.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/evennia/utils/tests/test_dbserialize.py b/evennia/utils/tests/test_dbserialize.py index b9c2cc3d9b..896769aa38 100644 --- a/evennia/utils/tests/test_dbserialize.py +++ b/evennia/utils/tests/test_dbserialize.py @@ -57,3 +57,8 @@ class TestDbSerialize(TestCase): self.assertEqual(self.obj.db.test, [{1: 0}, {0: 1}]) self.obj.db.test.sort(key=lambda d: str(d)) self.assertEqual(self.obj.db.test, [{0: 1}, {1: 0}]) + + def test_dict(self): + self.obj.db.test = {'a': True} + self.obj.db.test.update({'b': False}) + self.assertEqual(self.obj.db.test, {'a': True, 'b': False})