We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a0fe4 commit e8299c9Copy full SHA for e8299c9
tests/core/entity_parsing/base.py
@@ -73,12 +73,16 @@ def test_entity_parser_entity_values(self):
73
f'\t"""{self.IntentClass.__doc__}"""',
74
end="\n\n")
75
76
- print("\t\tChecking EntityParser...")
+ print("\t\tChecking EntityFields...")
77
self.parse_message_for_entities()
78
print(f"\t\tIntent reply: {self.intent_reply}")
79
80
for field_name, expected_value in self.expected_entities.items():
81
value = self.get_entity_value(field_name)
82
+ if self.mock_intent.ignore_in_entities is not None:
83
+ for word in self.mock_intent.ignore_in_entities:
84
+ self.assertNotIn(word, value)
85
+
86
self.assertEqual(expected_value,
87
value,
88
f"\t\tEntityParser test FAILED.\n"
0 commit comments