From 0eda8ed9e5ec367a9ea077657bf844f8633d8a08 Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:08:48 -0700 Subject: [PATCH] Add UT --- python/tests/unit_tests/test_testing.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 python/tests/unit_tests/test_testing.py 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)