Initial Fields Validators Implementation

This commit is contained in:
2025-04-07 19:23:49 -03:00
parent 18aab52f84
commit 936c5b350a
5 changed files with 50 additions and 16 deletions

View File

@@ -21,9 +21,10 @@ class TestTypeParser(unittest.TestCase):
def test_int_parser(self):
parser = IntTypeParser()
expected_definition = (int, {})
self.assertEqual(parser.from_properties("placeholder", {}), expected_definition)
type_parsing, type_validator = parser.from_properties("placeholder", {})
self.assertEqual(type_parsing, int)
def test_float_parser(self):
parser = FloatTypeParser()