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

Function test_collection

backend/tests/flashcards/test_cascade_delete.py:23–29  ·  view source on GitHub ↗

Create a test collection for cascade tests.

(db: Session, test_user)

Source from the content-addressed store, hash-verified

21
22@pytest.fixture
23def 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

Callers

nothing calls this directly

Calls 1

CollectionClass · 0.90

Tested by

no test coverage detected