![]() |
Terarea
2
The automation project
|
Functions | |
None | test_current_date (*Any args) |
None | hello_world () |
None | pending_world () |
None | goodbye_world () |
test_initialization () | |
test_add_task () | |
test_scheduler_start_stop () | |
test_multiple_tasks () | |
test_invalid_task () | |
test_safe_methods () | |
Variables | |
SUCCESS = TCONST.SUCCESS | |
ERROR = TCONST.ERROR | |
DEBUG = TCONST.DEBUG | |
_summary_ File in charge of testing the background task scheduler function.
None test_background_tasks.goodbye_world | ( | ) |
_summary_ This is a test function that will print "Goodbye, World!"
Definition at line 60 of file test_background_tasks.py.
None test_background_tasks.hello_world | ( | ) |
_summary_ This is a test function that will print "Hello, World!"
Definition at line 46 of file test_background_tasks.py.
None test_background_tasks.pending_world | ( | ) |
_summary_ This is a test function that will print "Pending, World!"
Definition at line 53 of file test_background_tasks.py.
test_background_tasks.test_add_task | ( | ) |
Test safe_add_task adds a task successfully.
Definition at line 81 of file test_background_tasks.py.
None test_background_tasks.test_current_date | ( | *Any | args | ) |
_summary_ This is a test function that will print the current date. Args: date (datetime): _description_
Definition at line 30 of file test_background_tasks.py.
test_background_tasks.test_initialization | ( | ) |
Test that BackgroundTasks initializes with correct parameters.
Definition at line 67 of file test_background_tasks.py.
test_background_tasks.test_invalid_task | ( | ) |
Test that adding an invalid task (non-callable) raises an error.
Definition at line 168 of file test_background_tasks.py.
test_background_tasks.test_multiple_tasks | ( | ) |
Test adding multiple tasks to the scheduler.
Definition at line 116 of file test_background_tasks.py.
test_background_tasks.test_safe_methods | ( | ) |
Test safe methods like safe_pause, safe_resume.
Definition at line 184 of file test_background_tasks.py.
test_background_tasks.test_scheduler_start_stop | ( | ) |
Test that the scheduler starts and stops correctly.
Definition at line 103 of file test_background_tasks.py.
test_background_tasks.DEBUG = TCONST.DEBUG |
Definition at line 25 of file test_background_tasks.py.
test_background_tasks.ERROR = TCONST.ERROR |
Definition at line 24 of file test_background_tasks.py.
test_background_tasks.SUCCESS = TCONST.SUCCESS |
Definition at line 23 of file test_background_tasks.py.