Coverage for fastblocks / adapters / app / _base.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-02 20:00 -0800

1import typing as t 

2 

3# Oneiric imports 

4from oneiric.core.config import OneiricSettings 

5from starlette.routing import Router 

6 

7 

8class AppBaseSettings(OneiricSettings): 

9 """App base settings using OneiricSettings.""" 

10 

11 name: str = "fastblocks" 

12 style: str = "vanilla" 

13 theme: str = "light" 

14 

15 

16class AppProtocol(t.Protocol): 

17 def __init__(self) -> None: ... 

18 

19 async def lifespan(self) -> t.AsyncIterator[None]: ... 

20 

21 

22class AppBase: 

23 """App base adapter using Oneiric.""" 

24 

25 router: Router | None 

26 

27 def __init__(self) -> None: 

28 self.router = None