Async Probes
tomodachi_testcontainers.async_probes
Asynchronous probes (sampling) for testing asynchronous systems.
Inspired by Awaitility and busypie.
probe_until
async
Run given function until it finishes without exceptions.
Given function can be a regular synchronous function or an asynchronous function.
PARAMETER | DESCRIPTION |
---|---|
probe
|
|
probe_interval
|
TYPE:
|
stop_after
|
TYPE:
|
Source code in src/tomodachi_testcontainers/async_probes.py
probe_during_interval
async
Run given function until timeout is reached and the function always finishes without exceptions.
Given function can be a regular synchronous function or an asynchronous function.
PARAMETER | DESCRIPTION |
---|---|
probe
|
|
probe_interval
|
TYPE:
|
stop_after
|
TYPE:
|