Simplify the boilerplate
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com>
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import pytest
|
||||
from langsmith import unit
|
||||
|
||||
from agent import graph
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@unit
|
||||
@pytest.mark.langsmith
|
||||
async def test_agent_simple_passthrough() -> None:
|
||||
res = await graph.ainvoke({"changeme": "some_val"})
|
||||
assert res is not None
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
from agent.configuration import Configuration
|
||||
from langgraph.pregel import Pregel
|
||||
|
||||
from agent.graph import graph
|
||||
|
||||
|
||||
def test_configuration_empty() -> None:
|
||||
Configuration.from_runnable_config({})
|
||||
def test_placeholder() -> None:
|
||||
# TODO: You can add actual unit tests
|
||||
# for your graph and other logic here.
|
||||
assert isinstance(graph, Pregel)
|
||||
|
||||
Reference in New Issue
Block a user