test: added tests
[
See test_continuous_collect.py
]
[ref]: N25B-206
This commit is contained in:
@@ -67,7 +67,7 @@ class ContinuousBeliefCollector(CyclicBehaviour):
|
||||
}
|
||||
|
||||
"""
|
||||
beliefs = payload.get("beliefs", dict)
|
||||
beliefs = payload.get("beliefs", {})
|
||||
|
||||
if not beliefs:
|
||||
logger.info("BeliefCollector: no beliefs to process.")
|
||||
|
||||
@@ -12,8 +12,7 @@ class BeliefTextAgent(Agent):
|
||||
# Send multiple beliefs in one JSON payload
|
||||
payload = {
|
||||
"type": "belief_extraction_text",
|
||||
"beliefs": {"user_said": [["hello","test"],["Can you help me?"],["stop talking to me"],["No"],["Pepper do a dance"]]}
|
||||
|
||||
"beliefs": {"user_said": [["hello test"],["Can you help me?"],["stop talking to me"],["No"],["Pepper do a dance"]]}
|
||||
}
|
||||
|
||||
msg = Message(to=to_jid)
|
||||
|
||||
Reference in New Issue
Block a user