mostly working shape?

This commit is contained in:
Aron Petau 2025-12-31 16:06:42 +01:00
parent 3057cda8d3
commit 540a3cc884
10 changed files with 462 additions and 183 deletions

View file

@ -1,3 +1,6 @@
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent))
import pytest
from handlers.howoge_handler import HowogeHandler
from handlers.gewobag_handler import GewobagHandler
@ -16,7 +19,7 @@ class MockBaseHandler(BaseHandler):
async def test_howoge_handler():
context = AsyncMock()
handler = HowogeHandler(context)
listing = {"link": "https://www.howoge.de/example"}
listing = {"link": "https://www.howoge.de/example", "id": "testid"}
result = {"success": False}
await handler.apply(listing, result)
assert "success" in result