mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
13 lines
273 B
Python
13 lines
273 B
Python
import json
|
|
from test_pydantic import TestPydantic
|
|
|
|
with open('./benchmarks/cases.json') as f:
|
|
cases = json.load(f)
|
|
|
|
count, pass_count = 0, 0
|
|
test = TestPydantic(False)
|
|
for case in cases:
|
|
passed, result = test.validate(case)
|
|
count += 1
|
|
pass_count += passed
|