Coverage for databases/tests/types/test_compat.py: 100%
5 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-08-27 18:25 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-08-27 18:25 +0000
1from prisma.models import Types
2from prisma._compat import model_json_schema
5def test_json_schema_compatible() -> None:
6 """Ensure a JSON Schema can be created for all types"""
7 # this is just a catch-all to check if any errors are raised during schema creation
8 # actual schema definitions are tested individually for each type
9 schema = model_json_schema(Types)
10 assert isinstance(schema, dict)