Skip to content

Commit e9d1921

Browse files
mdrxyCopilot
andauthored
refs(py): standard tests (#1265)
improve org --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c632a80 commit e9d1921

File tree

18 files changed

+116
-46
lines changed

18 files changed

+116
-46
lines changed

β€Žreference/python/docs/langchain_tests/index.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ To learn how to use these, see the [guide on integrating standard tests](https:/
2020

2121
Test components in isolation and without access to external services.
2222

23-
[:octicons-arrow-right-24: Reference](./unit_tests.md)
23+
[:octicons-arrow-right-24: Reference](./unit_tests/index.md)
2424

2525
- :material-lan-connect:{ .lg .middle } __Integration tests__
2626

2727
---
2828

2929
Test components in combination with external services to ensure end-to-end functionality.
3030

31-
[:octicons-arrow-right-24: Reference](./integration_tests.md)
31+
[:octicons-arrow-right-24: Reference](./integration_tests/index.md)
3232

3333
</div>

β€Žreference/python/docs/langchain_tests/integration_tests.mdβ€Ž

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Base tests
2+
3+
::: langchain_tests.unit_tests.chat_models.ChatModelTests
4+
::: langchain_tests.unit_tests.embeddings.EmbeddingsTests
5+
::: langchain_tests.unit_tests.tools.ToolsTests
6+
::: langchain_tests.base.BaseStandardTests
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Cache integration tests
2+
3+
::: langchain_tests.integration_tests.SyncCacheTestSuite
4+
::: langchain_tests.integration_tests.AsyncCacheTestSuite
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Chat model integration tests
2+
3+
::: langchain_tests.integration_tests.ChatModelIntegrationTests
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Embeddings integration tests
2+
3+
::: langchain_tests.integration_tests.EmbeddingsIntegrationTests
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Integration tests
2+
3+
Integration tests for LangChain components help ensure that your implementations work correctly with the LangChain ecosystem.
4+
5+
- [Chat models](./chat_models.md)
6+
- [Embeddings](./embeddings.md)
7+
- [Retrievers](./retrievers.md)
8+
- [Tools](./tools.md)
9+
- [Vector stores](./vectorstores.md)
10+
- [Key-value store tests](./kv_stores.md)
11+
- [Cache tests](./caches.md)
12+
- [Base classes](./base.md)
13+
14+
!!! tip "Docs"
15+
See more details in the [standard tests documentation](https://docs.langchain.com/oss/python/contributing/standard-tests-langchain).
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Key-value store integration tests
2+
3+
::: langchain_tests.integration_tests.BaseStoreSyncTests
4+
::: langchain_tests.integration_tests.BaseStoreAsyncTests
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Retriever integration tests
2+
3+
::: langchain_tests.integration_tests.RetrieversIntegrationTests
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Tool integration tests
2+
3+
::: langchain_tests.integration_tests.ToolsIntegrationTests

0 commit comments

Comments
Β (0)