smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
- from envirophatplus import gas
+ from enviroplus import gas
gas.setup()
gas.setup()
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
- from envirophatplus import gas
+ from enviroplus import gas
result = gas.read_all()
assert type(result.oxidising) == float
smbus = mock.Mock()
smbus.SMBus = SMBusFakeDevice
sys.modules['smbus'] = smbus
- from envirophatplus import gas
+ from enviroplus import gas
assert int(gas.read_oxidising()) == 16641
assert int(gas.read_reducing()) == 16727