| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from async_btree import action, condition |
||
| 4 | def test_condition(kernel): |
||
| 5 | async def target_test(value): |
||
| 6 | return value |
||
| 7 | |||
| 8 | assert kernel.run( |
||
| 9 | condition(target_test, value=True) |
||
| 10 | ) # pylint: disable=unexpected-keyword-arg |
||
| 11 | |||
| 12 | assert not kernel.run( |
||
| 13 | condition(target_test, value=False) |
||
| 14 | ) # pylint: disable=unexpected-keyword-arg |
||
| 29 |