refactor: add .wait() to set methods

This commit is contained in:
2024-06-03 09:16:40 +02:00
parent c5544226be
commit 73349257ee
2 changed files with 3 additions and 3 deletions

View File

@ -399,7 +399,7 @@ def test_async_monitor_complete(async_monitor):
def test_async_mon_on_trigger(async_monitor):
"""Test the on_trigger method of SimMonitorAsync."""
with (mock.patch.object(async_monitor.custom_prepare, "_send_data_to_bec") as mock_send,):
async_monitor.stage()
async_monitor.custom_prepare.on_stage()
upper_limit = async_monitor.custom_prepare._random_send_interval
for ii in range(1, upper_limit + 1):
async_monitor.custom_prepare.on_trigger()