Skip to content

Commit

Permalink
Add UT
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Apr 18, 2024
1 parent 0d6d1b9 commit 0eda8ed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python/tests/unit_tests/test_testing.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 0eda8ed

Please sign in to comment.