Coding Period - Week 13
The focus of this week was to implement the backend tests and improve in code documentation for the RoboticsAcademy Project.
RoboticsAcademy Tests Structure
tests/
├── conftest.py # Pytest configuration and fixtures
├── django/
│ ├── test_models.py # Django model tests
│ └── test_views.py # Django view tests
├── hal_interfaces/
│ ├── test_camera.py # Camera interface tests
│ ├── test_motors.py # Motors interface tests
│ └── test_laser.py # Laser interface tests
├── gui_interfaces/
│ ├── test_threading_gui.py # ThreadingGUI tests
│ └── test_measuring_gui.py # MeasuringThreadingGUI tests
├── console_interfaces/
│ └── test_console.py # Console interface tests
└── mocks/
├── mock_ros.py # ROS mocks
├── mock_ros_messages.py # ROS message mocks
└── mock_websocket.py # WebSocket mocks
Work Done
- Experiement with Django models and views tests
- set up interfaces tests
- add docstrings to interfaces code
Remaining Work
- Finalize interfaces tests
- Create CI workflow to enforce tests