diff --git a/python/tests/unit_tests/test_testing.py b/python/tests/unit_tests/test_testing.py new file mode 100644 index 000000000..5338e5956 --- /dev/null +++ b/python/tests/unit_tests/test_testing.py @@ -0,0 +1,12 @@ +from langsmith._testing import _serde_example_values + + +def test__serde_example_values(): + class Foo: + def __init__(self, a, b): + self.a = a + self.b = b + + results = _serde_example_values({"foo": Foo(1, 2)}) + assert "foo" in results + assert isinstance(results["foo"], str)