272539105f949ac28e37adac0474ac28d65256e0,tests/components/notify/test_demo.py,TestNotifyDemo,test_calling_notify_from_script_loaded_from_yaml_without_title,#TestNotifyDemo#,71

Before Change


          Test 123 {{ 2 + 2 }}


        with tempfile.NamedTemporaryFile() as fp:
            fp.write(yaml_conf.encode("utf-8"))
            fp.flush()
            conf = yaml.load_yaml(fp.name)

        script.call_from_config(self.hass, conf)
        self.hass.block_till_done()
        self.assertTrue(len(self.events) == 1)
        assert {

After Change



    def test_calling_notify_from_script_loaded_from_yaml_without_title(self):
        Test if we can call a notify from a script.
        conf = {
            "service": "notify.notify",
            "data": {
                "data": {
                    "push": {
                        "sound":
                        "US-EN-Morgan-Freeman-Roommate-Is-Arriving.wav"
                    }
                }
            },
            "data_template": {"message": "Test 123 {{ 2 + 2 }}\n"},
        }

        script.call_from_config(self.hass, conf)
        self.hass.block_till_done()
        self.assertTrue(len(self.events) == 1)
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/notify/test_demo.py
Class Name: TestNotifyDemo
Method Name: test_calling_notify_from_script_loaded_from_yaml_without_title


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/notify/test_demo.py
Class Name: TestNotifyDemo
Method Name: test_calling_notify_from_script_loaded_from_yaml_with_title


Project Name: tensorflow/minigo
Commit Name: c42da55607fa672a1f0acf3dbd9fb8e8fbdc57a6
Time: 2019-11-20
Author: tmadams@google.com
File Name: dual_net.py
Class Name:
Method Name: freeze_graph_tpu


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/notify/test_demo.py
Class Name: TestNotifyDemo
Method Name: test_calling_notify_from_script_loaded_from_yaml_without_title