Primary test organization.
(db)
| 175 | |
| 176 | @pytest.fixture |
| 177 | async 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 |
nothing calls this directly
no test coverage detected