latest.ipv8.test.test_taskmanager
Module Contents
Classes
Tests related to the task manager. |
- class latest.ipv8.test.test_taskmanager.TestTaskManager
Bases:
latest.ipv8.test.base.TestBase
Tests related to the task manager.
- async test_replace_with_duplicate() None
Check that a scheduled task can be overwritten by name, cancelling the previous task.
- async test_replace_without_duplicate() None
Check that replacing without a running task with the same name simply registers the task.
- async test_replace_with_error() None
Check that a task with faulty arguments raises a TypeError when replaced.
- test_delayed_looping_call_register_and_cancel_pre_delay() None
Check that a delayed repeating call can be cancelled.
- async test_delayed_looping_call_register_wait_and_cancel() None
Check if interval tasks are actually properly called.
- test_raise_on_duplicate_task_name() None
Check that a normal register task cannot be used as a replace task.
- async test_cleanup() None
Check if the tasks are cleaned up after the cleanup frequency has been met.
- async test_task_with_exception_ignore() None
Check that ignored exceptions do not end up in the main/generic exception handler.
Note that they are still locally raised!
- async test_task_decorator_coro() None
Check that the task decorator allows functions to be wrapped.
- test_task_decorator_no_coro() None
Check if an attempt to taskify a non-async function raises a TypeError.
- async test_get_anon_tasks_existing_pending() None
Check if existing pending anonymous tasks can be retrieved.