standard-tests: tool tests (#28244)

This commit is contained in:
Erick Friis
2024-11-20 19:26:16 -08:00
committed by GitHub
parent 35e6052df5
commit 60e572f591
3 changed files with 84 additions and 15 deletions

View File

@@ -13,12 +13,12 @@
"First, let's install 2 dependencies:\n",
"\n",
"- `langchain-core` will define the interfaces we want to import to define our custom tool.\n",
"- `langchain-tests==0.3.2` will provide the standard tests we want to use.\n",
"- `langchain-tests==0.3.3` will provide the standard tests we want to use.\n",
"\n",
":::note\n",
"\n",
"Because added tests in new versions of `langchain-tests` will always break your CI/CD pipelines, we recommend pinning the \n",
"version of `langchain-tests==0.3.2` to avoid unexpected changes.\n",
"version of `langchain-tests` to avoid unexpected changes.\n",
"\n",
":::"
]
@@ -178,7 +178,7 @@
"\n",
"```bash\n",
"# run unit tests without network access\n",
"pytest --disable-socket --enable-unix-socket tests/unit_tests\n",
"pytest --disable-socket --allow-unix-socket tests/unit_tests\n",
"\n",
"# run integration tests\n",
"pytest tests/integration_tests\n",