Добавлены тесты для CoreEnum
This commit is contained in:
@@ -78,7 +78,7 @@ class CoreEnumFromStringTests(CoreSimpleTestCase):
|
||||
with self.assertRaises(ValueError) as context:
|
||||
TestEmptyEnum.from_string("any_value")
|
||||
|
||||
self.assertIn("enum does not contain the value 'any_value'", str(context.exception))
|
||||
self.assertIn("enum must not be empty", str(context.exception))
|
||||
|
||||
def test_from_string_works_with_single_member_enum(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user