mirror of
https://github.com/langchain-ai/langchain-extract.git
synced 2026-07-01 20:24:03 -04:00
17 lines
464 B
Python
17 lines
464 B
Python
import pytest
|
|
|
|
from server.validators import validate_json_schema
|
|
|
|
|
|
def test_validate_json_schema() -> None:
|
|
"""Test validate_json_schema."""
|
|
# TODO: Validate more extensively to make sure that it actually validates
|
|
# the schema as expected.
|
|
with pytest.raises(Exception):
|
|
validate_json_schema({"type": "meow"})
|
|
|
|
with pytest.raises(Exception):
|
|
validate_json_schema({"type": "str"})
|
|
|
|
validate_json_schema({"type": "string"})
|