Добавлены тесты для CoreEnum

This commit is contained in:
2026-07-19 23:58:20 +03:00
parent 785bf1ba29
commit b923cac032
2 changed files with 19 additions and 17 deletions

View File

@@ -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):
"""