Use live worker in parameter estimation unittest
Use live worker for parameter estimation unittests involving asynchronous tasks. For a simple test, this just amounts to using the @pytest.mark.live_worker
decorator at the top of the tests, and removing the .run
when patching. However, it does not work for parameter estimation unittests since
- Mocked tasks do not seem to work with
group
. - Mocked tasks do not seem to count the number of calls with
.delay
, and break tests checking the number of calls.