Skip to content

Add AD5259 driver and test script#20

Open
josephnobes-stfc wants to merge 5 commits into
masterfrom
add-ad5259
Open

Add AD5259 driver and test script#20
josephnobes-stfc wants to merge 5 commits into
masterfrom
add-ad5259

Conversation

@josephnobes-stfc

Copy link
Copy Markdown
Contributor

Tested on hardware with expected responses, though resistances not physically measured

Tested on hardware with expected responses, though resistances not physically measured
@josephnobes-stfc josephnobes-stfc added the enhancement New feature or request label Mar 1, 2024
@josephnobes-stfc josephnobes-stfc self-assigned this Mar 1, 2024
Oddly, using Mock() for smbus actually broke the test in the ad5272 file
that was executed after this test. Changing the filename to make this
test occur last also fixed this issue, so the ad5259 test was actually
interfering with the other device's test file.

Changing smbus to MagicMock() appears to sort the issue. It seems
tests are not as segregated as I'd imagined.
@josephnobes-stfc
josephnobes-stfc marked this pull request as ready for review April 17, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant