mirror of
https://github.com/cmur2/python-bme680.git
synced 2024-12-22 22:54:29 +01:00
Fix for test in py3
This commit is contained in:
parent
45eeba9bb4
commit
5806466739
@ -29,7 +29,7 @@ def test_calc_gas_resistance(smbus, calibration):
|
|||||||
"""Validate gas calculation against mock calibration data."""
|
"""Validate gas calculation against mock calibration data."""
|
||||||
sensor = bme680.BME680()
|
sensor = bme680.BME680()
|
||||||
sensor.calibration_data = calibration
|
sensor.calibration_data = calibration
|
||||||
assert sensor._calc_gas_resistance(0, 0) == 12946860
|
assert int(sensor._calc_gas_resistance(0, 0)) == 12946860
|
||||||
|
|
||||||
|
|
||||||
def test_temp_offset(smbus, calibration):
|
def test_temp_offset(smbus, calibration):
|
||||||
|
Loading…
Reference in New Issue
Block a user