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

Function _create

backend/tests/stats/test_api.py:16–23  ·  view source on GitHub ↗
(user_id, num_cards=5, num_sessions=10)

Source from the content-addressed store, hash-verified

14@pytest.fixture
15def collection_with_sessions(db):
16 def _create(user_id, num_cards=5, num_sessions=10):
17 collection = Collection(name="Test Collection", user_id=user_id)
18 db.add(collection)
19 db.flush()
20 cards = create_cards(db, collection, num_cards)
21 sessions = create_sessions(db, user_id, collection, num_sessions, num_cards)
22 create_practice_cards(db, sessions, cards)
23 return collection
24
25 return _create
26

Callers

nothing calls this directly

Calls 4

CollectionClass · 0.90
create_cardsFunction · 0.90
create_sessionsFunction · 0.90
create_practice_cardsFunction · 0.90

Tested by

no test coverage detected