feat: add imported PVE contract and core endpoints

This commit is contained in:
Sergey Antropoff
2026-07-13 00:27:07 +03:00
parent adf9fb9108
commit d141994540
16 changed files with 71594 additions and 6 deletions
+5 -1
View File
@@ -44,7 +44,11 @@ async def request_app(
snapshot_path.write_bytes(contract_snapshot(get_method()).canonical_bytes())
settings = Settings(contract_snapshot=snapshot_path, contract_fallback=fallback)
database = FakeDatabase(True)
app = create_app(settings, lambda _settings: database, handlers)
app = create_app(
settings,
lambda _settings: database,
handlers if handlers is not None else HandlerRegistry(),
)
async with app.router.lifespan_context(app):
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
json_response = await client.get("/api2/json/version")