Skip to content
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

Add AD5259 driver and test script #20

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

josephnobes-stfc
Copy link
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.
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