Skip to content

Commit 8198574

Browse files
committed
Document why tests are split by responsibility
1 parent d273921 commit 8198574

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

server/api/services/test_embedding_services.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
log_usage,
1111
)
1212

13+
# Each function is tested one responsibility at a time. One test for the whole
14+
# function collapses all responsibilities into a single assertion block — when
15+
# it fails you know something is broken but not which responsibility. You have
16+
# to debug to find out.
17+
1318
# ---------------------------------------------------------------------------
1419
# build_query tests
1520
#

0 commit comments

Comments
 (0)