theaio/theaio-boards
Laneway, team task boards you can run from Claude or ChatGPT. FastAPI + DataK3 + appid + Models + MCP.
A remix template · 0 remixes · Remix theaio/theaio-boards
tests/conftest.py
import pytest
from boards.application.use_cases import Boards
from boards.domain.model import Person
from fakes import Clock, FakeAI, MemoryBoards
OWNER, MEMBER, VIEWER, STRANGER = (Person(e) for e in
("ana@x.io", "bo@x.io", "cy@x.io", "dee@x.io"))
@pytest.fixture
def svc():
"""A board 'Launch' owned by ana, with bo as member and cy as viewer. dee is on nothing."""
s = Boards(MemoryBoards(), FakeAI(), clock=Clock())
b = s.create_board(OWNER, "Launch")
s.invite_member(OWNER, b["id"], MEMBER.email, "member")
s.invite_member(OWNER, b["id"], VIEWER.email, "viewer")
return s, b["id"]