Skip to content

Tests: device_manager: create test suite for module - #6

Merged
wjeffreys96 merged 5 commits into
v2from
tests/device_manager/add_device_class_tests
Aug 15, 2026
Merged

Tests: device_manager: create test suite for module#6
wjeffreys96 merged 5 commits into
v2from
tests/device_manager/add_device_class_tests

Conversation

@wjeffreys96

Copy link
Copy Markdown

This PR would add a suite of tests for the device_manager.py module. It also installs pytest_qt to the app which adds tooling to test things like signals and qt gui elements. There are also some minor tweaks to the module itself to aid and testing and also just small things I found while testing that I don't think deserve their own PR.

used for things like testing signals, gui elements, etc
The registry keys arent even names anymore so the test I was writing was
failing.
Create tests for the device manager and the device/sensor/output
classes. Most functionalities of the classes I can think of are covered.
I've also tweaked some small things in the classes themselves that I
found as I wrote the tests.
@wjeffreys96
wjeffreys96 force-pushed the tests/device_manager/add_device_class_tests branch from 7db5646 to 87826d5 Compare August 15, 2026 21:18
We don't need to run this on every sensor, that's redundant and
pointless. just building one test sensor and testing that one is enough
and probably more helpful. Use loopback mode test canbus for this.
@wjeffreys96
wjeffreys96 force-pushed the tests/device_manager/add_device_class_tests branch 3 times, most recently from 795f862 to 29fdfbd Compare August 15, 2026 21:26
We don't need to test unsubscription in this test since we know from the
previous tests that part is good
@wjeffreys96
wjeffreys96 force-pushed the tests/device_manager/add_device_class_tests branch from 29fdfbd to e48c4e5 Compare August 15, 2026 21:27
@wjeffreys96
wjeffreys96 merged commit d236f7d into v2 Aug 15, 2026
@wjeffreys96
wjeffreys96 deleted the tests/device_manager/add_device_class_tests branch August 15, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant