start and stop manage cleanup task
(self, cache: RequestCache)
| 203 | |
| 204 | @pytest.mark.asyncio |
| 205 | async def test_start_stop(self, cache: RequestCache) -> None: |
| 206 | """start and stop manage cleanup task""" |
| 207 | await cache.start() |
| 208 | assert cache._cleanup_task is not None |
| 209 | |
| 210 | await cache.stop() |
| 211 | assert cache._cleanup_task is None |
| 212 | |
| 213 | @pytest.mark.asyncio |
| 214 | async def test_exception_in_execute_fn(self, cache: RequestCache) -> None: |