1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2024-12-22 12:54:29 +01:00

Fix for test in py3

This commit is contained in:
Phil Howard 2020-03-20 15:44:06 +00:00
parent 45eeba9bb4
commit 5806466739

View File

@ -29,7 +29,7 @@ def test_calc_gas_resistance(smbus, calibration):
"""Validate gas calculation against mock calibration data."""
sensor = bme680.BME680()
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):