Fixed web_agent_test

This commit is contained in:
2024-11-11 13:26:22 +01:00
parent babc1c44b9
commit 1a52205804

View File

@@ -1,9 +1,10 @@
import asyncio
import unittest
from datetime import datetime from datetime import datetime
from unittest.mock import Mock, MagicMock, patch, call
import xml.etree.ElementTree as ET
from typing import Iterator from typing import Iterator
from unittest.mock import Mock, MagicMock, patch, call
import asyncio
import time
import unittest
import xml.etree.ElementTree as ET
from sia.web_io_buffer import WebIOBuffer from sia.web_io_buffer import WebIOBuffer
from sia.working_memory import WorkingMemory from sia.working_memory import WorkingMemory
@@ -199,6 +200,7 @@ class WebAgentTest(unittest.TestCase):
# Approve response # Approve response
self.agent.approve_response() self.agent.approve_response()
time.sleep(1)
# Verify entry added to working memory # Verify entry added to working memory
self.assertEqual(self.working_memory.get_entries_count(), 1) self.assertEqual(self.working_memory.get_entries_count(), 1)