Skip to content

Commit e5908a8

Browse files
committed
Added unit tests for VocationFilter.from_name
1 parent c8c5b71 commit e5908a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/tests_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,6 @@ def testTryEnum(self):
130130

131131
def testEnumStr(self):
132132
self.assertEqual(str(enums.Sex.MALE), enums.Sex.MALE.value)
133+
self.assertEqual(enums.VocationFilter.from_name("royal paladin"), enums.VocationFilter.PALADINS)
134+
self.assertEqual(enums.VocationFilter.from_name("unknown"), enums.VocationFilter.ALL)
135+
self.assertIsNone(enums.VocationFilter.from_name("unknown", False))

0 commit comments

Comments
 (0)