Create a test collection for cascade tests.
(db: Session, test_user)
| 21 | |
| 22 | @pytest.fixture |
| 23 | def test_collection(db: Session, test_user): |
| 24 | """Create a test collection for cascade tests.""" |
| 25 | collection = Collection(name="Test Collection", user_id=test_user.id) |
| 26 | db.add(collection) |
| 27 | db.commit() |
| 28 | db.refresh(collection) |
| 29 | return collection |
| 30 | |
| 31 | |
| 32 | @pytest.fixture |