← Về thư mục
scripts/adapters/tests/test_sync_adapter_docs.py
- _run · function · L10-L16 — def _run(*args)
- test_script_exists · function · L19-L20 — def test_script_exists()
- test_regenerate_is_idempotent · function · L23-L29 — def test_regenerate_is_idempotent(tmp_path): # First, run without --check to regenerate in place
- test_check_detects_drift · function · L32-L52 — def test_check_detects_drift(tmp_path): # Save current overview content, deliberately corrupt a generated section, # verify --check exits non-zero, then restore.
- test_no_markers_no_op · function · L55-L60 — def test_no_markers_no_op(tmp_path): # A file with no markers is a no-op; script exits 0.
- test_missing_target_fails_loud · function · L63-L68 — def test_missing_target_fails_loud(tmp_path): # A nonexistent target must exit non-zero with a clear message.
- test_required_table_contains_all_required_fields · function · L71-L88 — def test_required_table_contains_all_required_fields(): # The regenerated overview must mention every schema-required field # in its REQUIRED table. This protects against a regex bug that # silently drops fields.