272539105f949ac28e37adac0474ac28d65256e0,tests/components/test_init.py,TestComponentsCore,test_reload_core_conf,#TestComponentsCore#,92

Before Change


        assert state.state == "unknown"
        assert state.attributes == {}

        with TemporaryDirectory() as conf_dir:
            self.hass.config.config_dir = conf_dir
            conf_yaml = self.hass.config.path(config.YAML_CONFIG_FILE)

            with open(conf_yaml, "a") as fp:
                fp.write(yaml.dump({
                    ha.DOMAIN: {
                        "latitude": 10,
                        "longitude": 20,
                        "customize": {
                            "test.Entity": {
                                "hello": "world"
                            }
                        }
                    }
                }))

            comps.reload_core_config(self.hass)
            self.hass.block_till_done()

        assert 10 == self.hass.config.latitude
        assert 20 == self.hass.config.longitude

        ent.update_ha_state()

After Change


                }
            })
        }
        with patch_yaml_files(files, True):
            comps.reload_core_config(self.hass)
            self.hass.block_till_done()

        assert 10 == self.hass.config.latitude
        assert 20 == self.hass.config.longitude

        ent.update_ha_state()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/test_init.py
Class Name: TestComponentsCore
Method Name: test_reload_core_conf


Project Name: pfnet/optuna
Commit Name: 665fc4749f4eceb9317633693f76644e1917fc87
Time: 2020-09-28
Author: ksuzuki19937.mm@gmail.com
File Name: tests/integration_tests/lightgbm_tuner_tests/test_optimize.py
Class Name: TestLightGBMTunerCV
Method Name: test_get_best_booster


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/test_init.py
Class Name: TestComponentsCore
Method Name: test_reload_core_with_wrong_conf