From 76884877dd599b86f355400e882faec36809f734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 21 Jan 2025 10:23:19 -0800 Subject: [PATCH] tests: add pytest-asyncio dependency --- dev-requirements.txt | 1 + pyproject.toml | 2 +- tests/test_langchain.py | 4 ---- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 2a9c68581..e3f52f9cd 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,6 +4,7 @@ pip-tools~=7.4.1 pre-commit~=4.0.1 pyright~=1.1.392 pytest~=8.3.4 +pytest-asyncio~=0.25.2 ruff~=0.9.1 setuptools~=75.8.0 setuptools_scm~=8.1.0 diff --git a/pyproject.toml b/pyproject.toml index fff189c6a..1fd2033a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,7 +85,7 @@ openrouter = [ "openai~=1.59.6" ] where = ["src"] [tool.pytest.ini_options] -addopts = "--verbose --disable-warnings" +addopts = "--verbose" testpaths = ["tests"] pythonpath = ["src"] asyncio_default_fixture_loop_scope = "function" diff --git a/tests/test_langchain.py b/tests/test_langchain.py index 22dc9d38d..b09eee86e 100644 --- a/tests/test_langchain.py +++ b/tests/test_langchain.py @@ -93,7 +93,3 @@ class TestLangchain(unittest.IsolatedAsyncioTestCase): # This next one would fail with: # AssertionError: ' H e l l o d e a r h u m a n' != 'Hello dear human' # self.assertEqual(tma_out.messages[-1]["content"], self.expected_response) - - -if __name__ == "__main__": - unittest.main()