mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 06:53:59 +00:00
multiple: rely on asyncio_mode auto in tests (#27200)
This commit is contained in:
@@ -118,7 +118,6 @@ def test_beta_function() -> None:
|
||||
assert not inspect.iscoroutinefunction(beta_function)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_beta_async_function() -> None:
|
||||
"""Test beta async function."""
|
||||
with warnings.catch_warnings(record=True) as warning_list:
|
||||
@@ -159,7 +158,6 @@ def test_beta_method() -> None:
|
||||
assert not inspect.iscoroutinefunction(obj.beta_method)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_beta_async_method() -> None:
|
||||
"""Test beta method."""
|
||||
with warnings.catch_warnings(record=True) as warning_list:
|
||||
|
@@ -137,7 +137,6 @@ def test_deprecated_function() -> None:
|
||||
assert not inspect.iscoroutinefunction(deprecated_function)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_deprecated_async_function() -> None:
|
||||
"""Test deprecated async function."""
|
||||
with warnings.catch_warnings(record=True) as warning_list:
|
||||
@@ -179,7 +178,6 @@ def test_deprecated_method() -> None:
|
||||
assert not inspect.iscoroutinefunction(obj.deprecated_method)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_deprecated_async_method() -> None:
|
||||
"""Test deprecated async method."""
|
||||
with warnings.catch_warnings(record=True) as warning_list:
|
||||
|
Reference in New Issue
Block a user