Add initial device mapping tests #48

Closed
opened 2026-05-12 00:50:09 -04:00 by JackFrostbyte · 0 comments

Context

The project already has conservative device mapping behavior, which is one of RGB Aura's important safety features.

Before larger refactors, especially future LLM-assisted animation generation work, the device mapping behavior should have tests to prevent regressions.

Scope

  • Add tests/conftest.py if useful.
  • Add tests/test_device_mapping.py.
  • Cover the current expected mapping behavior.
  • Test that ambiguous or mismatched devices are rejected.
  • Test that reserved/unused zones remain protected where practical.

Acceptance criteria

  • Device mapping safety behavior is covered by tests.
  • Tests do not require real OpenRGB hardware.
  • Tests can run in CI/local dev without attached devices.
  • ruff format passes.
  • ruff check passes.
  • Test suite passes.

Branch workflow

Base branch:

develop

Suggested work branch:

test/issue-48-device-mapping-tests

Pull request target:

develop

Do not merge directly into main. main should only receive tested release-ready changes from develop.

## Context The project already has conservative device mapping behavior, which is one of RGB Aura's important safety features. Before larger refactors, especially future LLM-assisted animation generation work, the device mapping behavior should have tests to prevent regressions. ## Scope - Add `tests/conftest.py` if useful. - Add `tests/test_device_mapping.py`. - Cover the current expected mapping behavior. - Test that ambiguous or mismatched devices are rejected. - Test that reserved/unused zones remain protected where practical. ## Acceptance criteria - Device mapping safety behavior is covered by tests. - Tests do not require real OpenRGB hardware. - Tests can run in CI/local dev without attached devices. - `ruff format` passes. - `ruff check` passes. - Test suite passes. ## Branch workflow Base branch: `develop` Suggested work branch: `test/issue-48-device-mapping-tests` Pull request target: `develop` Do not merge directly into `main`. `main` should only receive tested release-ready changes from `develop`.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JackFrostbyte/rgb-aura#48
No description provided.