Skip to content

Tools: ros2: Reduce test code duplication with fixture reuse #30003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Ryanf55
Copy link
Contributor

@Ryanf55 Ryanf55 commented May 7, 2025

  • Normally these go in conftest and are auto-imported by pytest, but LaunchPytest requires any fixtures to be statically visible at import time and imported directly
  • By moving these fixtures into a common file, we reduce the amount of code duplication for our tests

* Normally these go in conftest and are auto-imported by pytest, but
  LaunchPytest requires any fixtures to be statically visible at import
time and imported directly

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
@Ryanf55 Ryanf55 requested a review from srmainwaring May 7, 2025 05:41
@Ryanf55 Ryanf55 added the ROS label May 7, 2025
@Ryanf55 Ryanf55 changed the title Tools: ros2: Reduce test duplication with fixture reuse Tools: ros2: Reduce test code duplication with fixture reuse May 7, 2025
@andyp1per andyp1per merged commit 7aa6cb8 into ArduPilot:master May 13, 2025
102 checks passed
@Ryanf55 Ryanf55 deleted the dds-reduce-test-code-duplication branch May 14, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants