mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 17:56:32 +01:00
Placed tags tests in their own TestClass
This commit is contained in:
parent
3ae626ea3a
commit
ebcb4244aa
1 changed files with 3 additions and 1 deletions
|
|
@ -146,8 +146,10 @@ class TestTypedObjectManager(EvenniaTest):
|
|||
self.assertEqual(tagobj.db_category, "category4")
|
||||
self.assertEqual(tagobj.db_data, "data4")
|
||||
|
||||
|
||||
class TestTags(EvenniaTest):
|
||||
def test_has_tag_key_only(self):
|
||||
self.obj1.tags.add("tagC", "categoryC")
|
||||
self.obj1.tags.add("tagC")
|
||||
self.assertTrue(self.obj1.tags.has("tagC"))
|
||||
|
||||
def test_has_tag_key_with_category(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue