MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / test_multiple_cards

Function test_multiple_cards

backend/tests/flashcards/conftest.py:84–93  ·  view source on GitHub ↗
(db: Session, test_collection: Collection)

Source from the content-addressed store, hash-verified

82
83@pytest.fixture
84def test_multiple_cards(db: Session, test_collection: Collection) -> list[Card]:
85 cards = []
86 for i in range(5):
87 card_in = CardCreate(front=f"front {i}", back=f"back {i}")
88 card = create_card(
89 session=db, card_in=card_in, collection_id=test_collection.id
90 )
91 cards.append(card)
92
93 return cards

Callers

nothing calls this directly

Calls 2

CardCreateClass · 0.90
create_cardFunction · 0.90

Tested by

no test coverage detected