Merge branch 'develop' of github.com:evennia/evennia into develop

This commit is contained in:
Griatch 2021-10-26 21:41:37 +02:00
commit 0b97708614
2 changed files with 7 additions and 0 deletions

View file

@ -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,

View file

@ -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})