mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
updates to the pytest tests to fix the issues with pwm, added 2 new tests that bring in 5 total unit tests. python3 unit tests are passing, this will close #42 and close #47
This commit is contained in:
11
test/test_utilities.py
Normal file
11
test/test_utilities.py
Normal file
@ -0,0 +1,11 @@
|
||||
import pytest
|
||||
|
||||
import CHIP_IO.Utilities as UT
|
||||
|
||||
class TestUtilities:
|
||||
def test_invalid_set_1v8_with_string(self):
|
||||
assert not UT.set_1v8_pin_voltage("yaystring")
|
||||
|
||||
def test_invalid_set_1v8_with_outofbounds_value(self):
|
||||
assert not UT.set_1v8_pin_voltage(0.5)
|
||||
assert not UT.set_1v8_pin_voltage(4.5)
|
Reference in New Issue
Block a user