Registry
Functions:
|
|
|
Get one autopilot object with a specified base class and class name using a string, an enum in autopilot.utils.registry.REGISTRIES, or an object itself |
|
Test that calling |
|
Test that calling |
use the |
|
use the |
|
Test that the same object is gotten regardless of method of specifying base_class |
|
Ensure a exceptions are raised for nonsense |
- test_get_one(base_class, class_name)[source]
Get one autopilot object with a specified base class and class name using a string, an enum in autopilot.utils.registry.REGISTRIES, or an object itself
- test_get_all(base_class)[source]
Test that calling
get
with noclass_name
argument returns all the objects for that registry
- test_get_subtree(logger_registry_get, caplog)[source]
Test that calling
get
with a child of a top-level object (egGPIO
rather thanHardware
) gets all its children, (using GPIO as the test case)
- test_get_hardware()[source]
use the
autopilot.utils.registry.get_hardware()
aliasmostly a formality to keep it working since the underlying function is tested elsewhere
- test_get_task()[source]
use the
autopilot.utils.registry.get_task()
aliasmostly a formality to keep it working since the underlying function is tested elsewhere