Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
test(events): give the webhook test requests a body stream
trohitg01b0fe338485
diff --git a/server/tests/services/test_events.py b/server/tests/services/test_events.pyindex 505dbcd7..eaaef94e 100644--- a/server/tests/services/test_events.py+++ b/server/tests/services/test_events.py@@ -347,6 +347,9 @@ class TestWebhookSourceHandle:async def body(self):return body+ async def stream(self):+ yield body+return FakeReq()def test_valid_signature_dispatches(self):@@ -429,6 +432,9 @@ class TestWebhookSourceHandle:async def body(self):return body+ async def stream(self):+ yield body+with patch("services.event_waiter.dispatch") as dispatch:with pytest.raises(HTTPException) as exc:_run(src.handle(FakeReq()))@@ -465,6 +471,9 @@ class TestWebhookSourceHandle:async def body(self):return body+ async def stream(self):+ yield body+with patch("services.event_waiter.dispatch") as dispatch:with pytest.raises(HTTPException) as exc:_run(src.handle(FakeReq()))