(
db: Session, test_user: dict[str, Any]
)
| 56 | |
| 57 | @pytest.fixture |
| 58 | def test_multiple_collections( |
| 59 | db: Session, test_user: dict[str, Any] |
| 60 | ) -> list[Collection]: |
| 61 | collections = [] |
| 62 | for i in range(5): |
| 63 | cards = [ |
| 64 | CardCreate(front=f"front {i}-{j}", back=f"back {i}-{j}") for j in range(1) |
| 65 | ] |
| 66 | collection = create_collection( |
| 67 | session=db, |
| 68 | user_id=test_user["id"], |
| 69 | name=f"Test Collection {i}", |
| 70 | cards=cards, |
| 71 | ) |
| 72 | collections.append(collection) |
| 73 | return collections |
| 74 | |
| 75 | |
| 76 | @pytest.fixture |
nothing calls this directly
no test coverage detected