Secondary organization for cross-org isolation tests.
(db)
| 193 | |
| 194 | @pytest.fixture |
| 195 | async 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 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected