Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+13
View File
@@ -0,0 +1,13 @@
from routes.document_helpers import _derive_title
def test_derive_title_handles_non_string_content():
# content normally comes from a document text column, but the helper is
# public and a non-string (None / int) made content.strip() raise
# AttributeError instead of falling back to a default title.
assert _derive_title(None) == "Untitled"
assert _derive_title(123) == "Untitled"
def test_derive_title_still_reads_markdown_heading():
assert _derive_title("# Heading Title\nbody text") == "Heading Title"