wrapyfi.tests package
Subpackages
- wrapyfi.tests.tools package
- Submodules
- wrapyfi.tests.tools.benchmarking_native_object module
Benchmarker
Benchmarker.get_numpy_object()
Benchmarker.get_pandas_object()
Benchmarker.get_cupy_gpu_object()
Benchmarker.get_pyarrow_object()
Benchmarker.get_xarray_object()
Benchmarker.get_dask_object()
Benchmarker.get_pillow_object()
Benchmarker.get_tensorflow_object()
Benchmarker.get_jax_object()
Benchmarker.get_mxnet_object()
Benchmarker.get_mxnet_gpu_object()
Benchmarker.get_pytorch_object()
Benchmarker.get_pytorch_gpu_object()
Benchmarker.get_paddle_object()
Benchmarker.get_paddle_gpu_object()
Benchmarker.get_all_objects()
Benchmarker.get_yarp_native_objects()
Benchmarker.get_ros_native_objects()
Benchmarker.get_ros2_native_objects()
Benchmarker.get_zeromq_native_objects()
parse_args()
- wrapyfi.tests.tools.class_test module
- Module contents
Submodules
wrapyfi.tests.test_middleware module
- class wrapyfi.tests.test_middleware.ZeroMQTestMiddleware(methodName='runTest')[source]
Bases:
TestCase
- MWARE = 'zeromq'
- class wrapyfi.tests.test_middleware.ROS2TestMiddleware(methodName='runTest')[source]
Bases:
ZeroMQTestMiddleware
Test the ROS 2 wrapper. This test class inherits from the ZeroMQ test class, so all tests from the ZeroMQ test class are also run for the ROS 2 wrapper.
- MWARE = 'ros2'
- class wrapyfi.tests.test_middleware.YarpTestMiddleware(methodName='runTest')[source]
Bases:
ZeroMQTestMiddleware
Test the YARP wrapper. This test class inherits from the ZeroMQ test class, so all tests from the ZeroMQ test class are also run for the YARP wrapper.
- MWARE = 'yarp'
- class wrapyfi.tests.test_middleware.ROSTestMiddleware(methodName='runTest')[source]
Bases:
ZeroMQTestMiddleware
Test the ROS wrapper. This test class inherits from the ZeroMQ test class, so all tests from the ZeroMQ test class are also run for the ROS wrapper.
- MWARE = 'ros'
wrapyfi.tests.test_wrapper module
- class wrapyfi.tests.test_wrapper.ZeroMQTestWrapper(methodName='runTest')[source]
Bases:
TestCase
- MWARE = 'zeromq'
- test_activate_communication()[source]
Test the activate communication functionality of the middleware. When the
activate_communication
method is called, the__WRAPYFI_INSTANCES
attribute of the decorated function should be updated with the instance of the class that called the method. Destroying the class instance should remove the instance from the list and the the connection should no longer be active. Theactivate_communication
method should also be callable multiple times on the same function.
- test_close()[source]
Test the close functionality of the middleware. When the
close
method is called, the instances should be reordered in the__WRAPYFI_INSTANCES
attribute of the decorated function. Destroying the class instance should remove the instance from the list and the index of the connection should change. Theclose
method should also be callable multiple times on different instances of a class.
- class wrapyfi.tests.test_wrapper.ROS2TestWrapper(methodName='runTest')[source]
Bases:
ZeroMQTestWrapper
Test the ROS 2 wrapper. This test class inherits from the ZeroMQ test class, so all tests from the ZeroMQ test class are also run for the ROS 2 wrapper.
- MWARE = 'ros2'
- class wrapyfi.tests.test_wrapper.YarpTestWrapper(methodName='runTest')[source]
Bases:
ZeroMQTestWrapper
Test the YARP wrapper. This test class inherits from the ZeroMQ test class, so all tests from the ZeroMQ test class are also run for the YARP wrapper.
- MWARE = 'yarp'
- class wrapyfi.tests.test_wrapper.ROSTestWrapper(methodName='runTest')[source]
Bases:
ZeroMQTestWrapper
Test the ROS wrapper. This test class inherits from the ZeroMQ test class, so all tests from the ZeroMQ test class are also run for the ROS wrapper.
- MWARE = 'ros'