fd95cb15c56b3b7a19bbb266b4fc5a40f6eb8f0b,snips_nlu/tests/test_entity_loading.py,TestEntityLoading,test_from_yaml_file_with_defaults,#TestEntityLoading#,61

Before Change



    def test_from_yaml_file_with_defaults(self):
        // Given
        yaml_stream = io.StringIO(
// Location Entity
---
name: location
values:
- [new york, big apple]
- [paris, city of lights]
- london
        )
        yaml_dict = yaml.safe_load(yaml_stream)

        // When
        entity = Entity.from_yaml(yaml_dict)
        entity_dict = entity.json

        // Then
        expected_entity_dict = {

After Change



    def test_from_yaml_file_with_defaults(self):
        // Given
        entity = Entity.from_yaml(io.StringIO(
// Location Entity
---
name: location
values:
- [new york, big apple]
- [paris, city of lights]
- london
        ))

        // When
        entity_dict = entity.json
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: snipsco/snips-nlu
Commit Name: fd95cb15c56b3b7a19bbb266b4fc5a40f6eb8f0b
Time: 2018-12-04
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_entity_loading.py
Class Name: TestEntityLoading
Method Name: test_from_yaml_file_with_defaults


Project Name: snipsco/snips-nlu
Commit Name: fd95cb15c56b3b7a19bbb266b4fc5a40f6eb8f0b
Time: 2018-12-04
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_intent_loading.py
Class Name: TestIntentLoading
Method Name: test_should_load_from_yaml_file_using_slot_mapping


Project Name: snipsco/snips-nlu
Commit Name: fd95cb15c56b3b7a19bbb266b4fc5a40f6eb8f0b
Time: 2018-12-04
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_intent_loading.py
Class Name: TestIntentLoading
Method Name: test_should_load_from_yaml_file


Project Name: snipsco/snips-nlu
Commit Name: fd95cb15c56b3b7a19bbb266b4fc5a40f6eb8f0b
Time: 2018-12-04
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_entity_loading.py
Class Name: TestEntityLoading
Method Name: test_from_yaml_file


Project Name: snipsco/snips-nlu
Commit Name: fd95cb15c56b3b7a19bbb266b4fc5a40f6eb8f0b
Time: 2018-12-04
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_intent_loading.py
Class Name: TestIntentLoading
Method Name: test_should_load_from_yaml_file_using_implicit_values