mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-06 19:48:26 +00:00
21 lines
599 B
Python
21 lines
599 B
Python
# ruff: noqa: E402
|
|
import pytest
|
|
|
|
# Rewrite assert statements for test suite so that implementations can
|
|
# see the full error message from failed asserts.
|
|
# https://docs.pytest.org/en/7.1.x/how-to/writing_plugins.html#assertion-rewriting
|
|
modules = [
|
|
"chat_models",
|
|
"embeddings",
|
|
"tools",
|
|
]
|
|
|
|
for module in modules:
|
|
pytest.register_assert_rewrite(f"langchain_tests.unit_tests.{module}")
|
|
|
|
from .chat_models import ChatModelUnitTests
|
|
from .embeddings import EmbeddingsUnitTests
|
|
from .tools import ToolsUnitTests
|
|
|
|
__all__ = ["ChatModelUnitTests", "EmbeddingsUnitTests", "ToolsUnitTests"]
|