tests: add pytest-asyncio dependency
This commit is contained in:
@@ -4,6 +4,7 @@ pip-tools~=7.4.1
|
|||||||
pre-commit~=4.0.1
|
pre-commit~=4.0.1
|
||||||
pyright~=1.1.392
|
pyright~=1.1.392
|
||||||
pytest~=8.3.4
|
pytest~=8.3.4
|
||||||
|
pytest-asyncio~=0.25.2
|
||||||
ruff~=0.9.1
|
ruff~=0.9.1
|
||||||
setuptools~=75.8.0
|
setuptools~=75.8.0
|
||||||
setuptools_scm~=8.1.0
|
setuptools_scm~=8.1.0
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ openrouter = [ "openai~=1.59.6" ]
|
|||||||
where = ["src"]
|
where = ["src"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--verbose --disable-warnings"
|
addopts = "--verbose"
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
pythonpath = ["src"]
|
pythonpath = ["src"]
|
||||||
asyncio_default_fixture_loop_scope = "function"
|
asyncio_default_fixture_loop_scope = "function"
|
||||||
|
|||||||
@@ -93,7 +93,3 @@ class TestLangchain(unittest.IsolatedAsyncioTestCase):
|
|||||||
# This next one would fail with:
|
# This next one would fail with:
|
||||||
# AssertionError: ' H e l l o d e a r h u m a n' != 'Hello dear human'
|
# 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)
|
# self.assertEqual(tma_out.messages[-1]["content"], self.expected_response)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user