clearpath_tests.test_node module
- class clearpath_tests.test_node.ClearpathTestNode(*args: Any, **kwargs: Any)
Bases:
Node
Generic superclass for test nodes.
These nodes can either be run independently or can be run as part of a multi-element testing suite
- get_test_result_details() str
Get additional details about the test results.
These details get included in the report, but are not printed out.
If the test does not support additional details, simply return None
- static promptYN(message: str, default: str = 'Y')
Ask the user a yes/no question and return their response.
@param message The prompt to give the user @param default Either Y or N, indicating the default response if the user just pressed
ENTER without any other characters
@return Either “Y” or “N”
- run_test()
Run this node interactively, prompting the user for input.
This function must be implemented by all children
@return An array of TestResults describing the results
- start()
Run this node normally as a standard ROS node without any user interaction.
This function must be implemented by all children
- class clearpath_tests.test_node.ClearpathTestResult(success: bool, name: str, message: str)
Bases:
object