reorg files

This commit is contained in:
2026-07-22 23:49:44 +02:00
parent 98ac4abca1
commit 0526406472
69 changed files with 760 additions and 539 deletions
+6 -2
View File
@@ -7,8 +7,12 @@ import pytest
from fastapi import FastAPI
from httpx import ASGITransport, AsyncClient, Response
from agentci.api.routes.webhook import router
from agentci.engine.model import IncomingCommand
from agentci.webhook import _event_from_payload, router, valid_signature
from agentci.integrations.gitea.webhooks import (
incoming_command_from_payload,
valid_signature,
)
class FakeRepository:
@@ -167,7 +171,7 @@ def test_payload_parser_supports_owner_username_and_pull_request() -> None:
value = payload("/agent plan", is_pull=True)
value["repository"]["owner"] = {"username": "fallback-owner"}
event = _event_from_payload("delivery", value)
event = incoming_command_from_payload("delivery", value)
assert event is not None
assert event.repo_owner == "fallback-owner"