def test_reset(self, target): """Call reset on target and compare to new instance""" other = core.EsphomeCore() target.reset() assert target.__dict__ == other.__dict__
def test_reset(self, target): """Call reset on target and compare to new instance""" other = core.EsphomeCore() target.reset() # TODO: raw_config and config differ, should they? assert target.__dict__ == other.__dict__
def test_reset(self, target): """Call reset on target and compare to new instance""" other = core.EsphomeCore().__dict__ target.reset() t = target.__dict__ # ignore event loop del other["event_loop"] del t["event_loop"] assert t == other
def target(self, fixture_path): target = core.EsphomeCore() target.build_path = "foo/build" target.config_path = "foo/config" return target