projects
/
EVA-2020-02-2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update README install instructions
[EVA-2020-02-2.git]
/
library
/
tests
/
test_setup.py
diff --git
a/library/tests/test_setup.py
b/library/tests/test_setup.py
index af3ed82d2694956ebacf5b3aa6bf82ad5152c2c5..b912a3764ee7bcf414c3856aded295ce719af1e0 100644
(file)
--- a/
library/tests/test_setup.py
+++ b/
library/tests/test_setup.py
@@
-15,7
+15,7
@@
def test_gas_setup():
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
- from envirop
hatp
lus import gas
+ from enviroplus import gas
gas.setup()
gas.setup()
gas.setup()
gas.setup()
@@
-26,7
+26,7
@@
def test_gas_read_all():
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
- from envirop
hatp
lus import gas
+ from enviroplus import gas
result = gas.read_all()
assert type(result.oxidising) == float
result = gas.read_all()
assert type(result.oxidising) == float
@@
-47,7
+47,7
@@
def test_gas_read_each():
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
- from envirop
hatp
lus import gas
+ from enviroplus import gas
assert int(gas.read_oxidising()) == 16641
assert int(gas.read_reducing()) == 16727
assert int(gas.read_oxidising()) == 16641
assert int(gas.read_reducing()) == 16727