Ignore flaky test (#22563)

This commit is contained in:
Jason Hu 2019-03-30 21:10:32 -07:00 committed by Paulus Schoutsen
parent 4d1633807c
commit 388d614e30

View file

@ -230,7 +230,7 @@ class TestStatisticsSensor(unittest.TestCase):
state.attributes.get('max_age')
assert self.change_rate == state.attributes.get('change_rate')
@pytest.mark.skip
@pytest.mark.skip("Flaky in CI")
def test_initialize_from_database(self):
"""Test initializing the statistics from the database."""
# enable the recorder
@ -260,6 +260,7 @@ class TestStatisticsSensor(unittest.TestCase):
state = self.hass.states.get('sensor.test_mean')
assert str(self.mean) == state.state
@pytest.mark.skip("Flaky in CI")
def test_initialize_from_database_with_maxage(self):
"""Test initializing the statistics from the database."""
mock_data = {