1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

Fixes in LRADC.py for debug printing failing when using Python3. Updates to the README to detail running unit tests for either Python version. Ref #42 and #47

This commit is contained in:
Robert Wolterman
2017-01-06 04:11:12 +00:00
parent 8ecec67bad
commit 6972f352ae
2 changed files with 21 additions and 13 deletions

View File

@ -345,11 +345,19 @@ To use the utilities, here is sample code::
Install py.test to run the tests. You'll also need the python compiler package for py.test.::
# Python 2.7
sudo apt-get install python-pytest
# Python 3
sudo apt-get install python3-pytest
Execute the following in the root of the project::
To run the tests, do the following.::
# If only one version of Python is installed
sudo py.test
# If more than one version of Python
cd test
sudo python2 -m pytest
sudo python3 -m pytest
**Credits**