Пример #1
0
    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__
Пример #3
0
    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
Пример #4
0
 def target(self, fixture_path):
     target = core.EsphomeCore()
     target.build_path = "foo/build"
     target.config_path = "foo/config"
     return target