MCPcopy
hub / github.com/learnhouse/learnhouse / org

Function org

apps/api/src/tests/conftest.py:177–191  ·  view source on GitHub ↗

Primary test organization.

(db)

Source from the content-addressed store, hash-verified

175
176@pytest.fixture
177async def org(db):
178 """Primary test organization."""
179 o = Organization(
180 id=1,
181 name="Test Org",
182 slug="test-org",
183 email="test@org.com",
184 org_uuid="org_test",
185 creation_date=str(datetime.now()),
186 update_date=str(datetime.now()),
187 )
188 db.add(o)
189 await db.commit()
190 await db.refresh(o)
191 return o
192
193
194@pytest.fixture

Callers

nothing calls this directly

Calls 2

OrganizationClass · 0.90
commitMethod · 0.80

Tested by

no test coverage detected