mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
test: mark async bootstrap test with @pytest.mark.asyncio
Addresses review feedback on PR #999: add the explicit @pytest.mark.asyncio decorator to test_run_forwards_configured_timeouts so it does not rely on asyncio_mode=auto and stays consistent with the rest of the suite.
This commit is contained in:
parent
9609999e4f
commit
f4cdab3050
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ configured values actually reach the flow-client request calls.
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock
|
from unittest.mock import AsyncMock, MagicMock
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
from trustgraph.bootstrap.initialisers.default_flow_start import (
|
from trustgraph.bootstrap.initialisers.default_flow_start import (
|
||||||
DefaultFlowStart,
|
DefaultFlowStart,
|
||||||
)
|
)
|
||||||
|
|
@ -24,6 +26,7 @@ def test_timeout_overrides_are_stored():
|
||||||
assert init.start_timeout == 99
|
assert init.start_timeout == 99
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.asyncio
|
||||||
async def test_run_forwards_configured_timeouts():
|
async def test_run_forwards_configured_timeouts():
|
||||||
init = DefaultFlowStart(blueprint="bp", list_timeout=5, start_timeout=99)
|
init = DefaultFlowStart(blueprint="bp", list_timeout=5, start_timeout=99)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue