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

Tested HW support for 72-2540, add pytest tests #13

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

thomas-phillips-nz
Copy link
Contributor

@thomas-phillips-nz thomas-phillips-nz commented Sep 25, 2023

I tried to split everything into separate commits, can remove individual commits if you don't want to include them (e.g. removing trailing whitespace)

Tested everything in the new pytest file

  • Version
  • Voltage setting/reading
  • Current setting/reading
  • Memory store/recall all 5 slots
  • Beep on/off
  • Output on/off
  • Running current/voltage

@kxtells
Copy link
Owner

kxtells commented Sep 26, 2023

HI @thomas-phillips-nz , everything looks good and clean. Thanks for your effort :-)

I would suggest adding some small documentation at least in the README to explain about the tests and the two environment variables governing them before we merge this PR.

@thomas-phillips-nz
Copy link
Contributor Author

Sure, will do when I get into the office tomorrow.

Should I add pytest to requirements.txt? It's not really required for running, only development/testing.

@kxtells
Copy link
Owner

kxtells commented Sep 26, 2023

For the moment I think we do not need to add pytest in requirements.txt.

We could add it as extras but let's keep it simple for now and do nothing about it :-p

@thomas-phillips-nz
Copy link
Contributor Author

Have added changes to the readme now, and improved the test a little bit around finding the COM port.

@kxtells
Copy link
Owner

kxtells commented Sep 27, 2023

Looks good and clean, merging.

@kxtells kxtells merged commit a2c533d into kxtells:master Sep 27, 2023
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.

2 participants