aboutsummaryrefslogtreecommitdiff
path: root/.ai/scripts/tests/test_drill_to_anki.py
diff options
context:
space:
mode:
Diffstat (limited to '.ai/scripts/tests/test_drill_to_anki.py')
-rw-r--r--.ai/scripts/tests/test_drill_to_anki.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/.ai/scripts/tests/test_drill_to_anki.py b/.ai/scripts/tests/test_drill_to_anki.py
index 6c5ef9b..fc17817 100644
--- a/.ai/scripts/tests/test_drill_to_anki.py
+++ b/.ai/scripts/tests/test_drill_to_anki.py
@@ -121,6 +121,11 @@ def test_strip_org_metadata_unclosed_drawer_swallows_the_rest(drill):
assert drill.strip_org_metadata(body) == []
+def test_strip_org_metadata_drops_created_date_line(drill):
+ # A created/added date never belongs on a card back.
+ assert drill.strip_org_metadata(["Created: 2026-05-30", "real answer"]) == ["real answer"]
+
+
# --- parse (pure, core parser) ---
SECTIONED = """* Orbital Regimes