Skip to content

Commit 696f2ad

Browse files
authored
fix: int test (#30)
2 parents f675777 + 8c80639 commit 696f2ad

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ TEST_FILE ?= tests/unit_tests/
99
test:
1010
python -m pytest $(TEST_FILE)
1111

12+
integration_tests:
13+
python -m pytest tests/integration_tests
14+
1215
test_watch:
1316
python -m ptw --snapshot-update --now . -- -vv tests/unit_tests
1417

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The primary [search tool](./src/react_agent/tools.py) [^1] used is [Tavily](http
4141
The defaults values for `model` are shown below:
4242

4343
```yaml
44-
model: anthropic/claude-3-5-sonnet-20240620
44+
model: claude-sonnet-4-5-20250929
4545
```
4646
4747
Follow the instructions below to get set up, or pick one of the additional options.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ convention = "google"
6262

6363
[dependency-groups]
6464
dev = [
65+
"anyio>=4.7.0",
6566
"langgraph-cli[inmem]>=0.1.71",
6667
"pytest>=8.3.5",
6768
]

src/react_agent/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Context:
2222
)
2323

2424
model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field(
25-
default="anthropic/claude-4-5",
25+
default="anthropic/claude-sonnet-4-5-20250929",
2626
metadata={
2727
"description": "The name of the language model to use for the agent's main interactions. "
2828
"Should be in the form: provider/model-name."

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import pytest
2+
3+
4+
@pytest.fixture(scope="session")
5+
def anyio_backend():
6+
return "asyncio"
7+

tests/integration_tests/test_graph.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import pytest
2-
from langsmith import unit
32

43
from react_agent import graph
54
from react_agent.context import Context
65

6+
pytestmark = pytest.mark.anyio
7+
78

8-
@pytest.mark.asyncio
9-
@unit
109
async def test_react_agent_simple_passthrough() -> None:
1110
res = await graph.ainvoke(
1211
{"messages": [("user", "Who is the founder of LangChain?")]}, # type: ignore

0 commit comments

Comments
 (0)