Skip to content

Commit

Permalink
add test for is_key_in_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Mar 24, 2021
1 parent 96d05cb commit bb6e280
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ async def test_is_key_in_yaml(file: Text, keys: List[Text], expected_result: boo
assert YAMLStoryReader.is_key_in_yaml(file, *keys) == expected_result


async def test_is_key_in_yaml_with_unicode_files():
# This shouldn't raise
assert YAMLStoryReader.is_key_in_yaml(
"./data/test_nlu_no_responses/nlu_with_unicode.yml", "nlu"
)


async def test_yaml_intent_with_leading_slash_warning(default_domain: Domain):
yaml_file = "data/test_wrong_yaml_stories/intent_with_leading_slash.yml"

Expand Down

0 comments on commit bb6e280

Please sign in to comment.