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

Function test_multiple_collections

backend/tests/flashcards/conftest.py:58–73  ·  view source on GitHub ↗
(
    db: Session, test_user: dict[str, Any]
)

Source from the content-addressed store, hash-verified

56
57@pytest.fixture
58def 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

Callers

nothing calls this directly

Calls 2

CardCreateClass · 0.90
create_collectionFunction · 0.90

Tested by

no test coverage detected