def test_monitor_temperatures(arduino, fake_temperatures):
    old_temp = fake_temperatures.timestamp
    monitor_temperatures()
    old_temp = Temperature.query.filter(Temperature.timestamp == old_temp).first()
    new_temp = Temperature.latest_temperature()

    assert naturally_equivalent(old_temp, new_temp) is False
    assert new_temp.temp == Decimal("33.4200")
    assert new_temp.humidity == Decimal("46.7400")
def test_latest_temperature(fake_temperatures):
    fake_temp = fake_temperatures

    assert Temperature.latest_temperature() == fake_temp
    assert len(Temperature.query.all()) == 3