MCPcopy Create free account
hub / github.com/dot-agent/nextpy / test_background_task_no_chain

Function test_background_task_no_chain

tests/test_state.py:1926–1932  ·  view source on GitHub ↗

Test that a background task cannot be chained.

()

Source from the content-addressed store, hash-verified

1924
1925@pytest.mark.asyncio
1926async def test_background_task_no_chain():
1927 """Test that a background task cannot be chained."""
1928 bts = BackgroundTaskState()
1929 with pytest.raises(RuntimeError):
1930 await bts.bad_chain1()
1931 with pytest.raises(RuntimeError):
1932 await bts.bad_chain2()
1933
1934
1935def test_mutable_list(mutable_state):

Callers

nothing calls this directly

Calls 3

bad_chain1Method · 0.95
bad_chain2Method · 0.95
BackgroundTaskStateClass · 0.85

Tested by

no test coverage detected