Skip to content

Latest commit

 

History

History
 
 

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tests

Test sentences and their corresponding intents.

By convention, test names for areas and entities are put into tests/<language>/_fixtures.yaml

File Format

language: "<language code>"
tests:
  - sentences:
      - "<sentence>"
      - "<sentence>"
    intent:
      name: "<intent name>"
      slots:
        <slot_name>:
          value: <slot value>
areas:
  - name: "<area name>"
    id: "<area id>"
names:
  - name: "<entity name>"
    id: "<entity id>"

Each test sentence must be recognized as the named intent, and each slot value must match exactly.

The areas and names sections are used to populate the {area} and {name} lists that will be generated by Home Assistant during actual recognition.

By convention, areas and entity names are collected into a _fixtures.yaml file.