You could try adding this code:
[pytest] asyncio_mode = auto timeout = 15 # seconds
The timeout variable will set the time it takes to timeout. Hopefully.