Fix of unittest to account for mysql/psql variations

This commit is contained in:
Griatch 2020-08-31 19:38:57 +02:00
parent d022c9c7bc
commit 451c45d20b
2 changed files with 2 additions and 2 deletions

View file

@ -1146,7 +1146,7 @@ class TestBuilding(CommandTest):
"= Obj", "= Obj",
"To create a global script you need scripts/add <typeclass>.", "To create a global script you need scripts/add <typeclass>.",
) )
self.call(building.CmdScript(), "Obj = ", "dbref obj") self.call(building.CmdScript(), "Obj ", "dbref ")
self.call( self.call(
building.CmdScript(), "/start Obj", "0 scripts started on Obj" building.CmdScript(), "/start Obj", "0 scripts started on Obj"

View file

@ -159,7 +159,7 @@ class TestCreateMessage(EvenniaTest):
locks=locks, locks=locks,
tags=tags, tags=tags,
) )
self.assertEqual(msg.receivers, [self.char1, self.char2]) self.assertEqual(set(msg.receivers), set([self.char1, self.char2]))
self.assertTrue(all(lock in msg.locks.all() for lock in locks.split(";"))) self.assertTrue(all(lock in msg.locks.all() for lock in locks.split(";")))
self.assertEqual(msg.tags.all(), tags) self.assertEqual(msg.tags.all(), tags)