MCPcopy
hub / github.com/learnhouse/learnhouse / other_org

Function other_org

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

Secondary organization for cross-org isolation tests.

(db)

Source from the content-addressed store, hash-verified

193
194@pytest.fixture
195async def other_org(db):
196 """Secondary organization for cross-org isolation tests."""
197 o = Organization(
198 id=2,
199 name="Other Org",
200 slug="other-org",
201 email="other@org.com",
202 org_uuid="org_other",
203 creation_date=str(datetime.now()),
204 update_date=str(datetime.now()),
205 )
206 db.add(o)
207 await db.commit()
208 await db.refresh(o)
209 return o
210
211
212# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

OrganizationClass · 0.90
commitMethod · 0.80

Tested by

no test coverage detected