fix(discourse): send capitalised topic title so Discourse title_prettify is a no-op (was 'ccci'->'Ccci' mismatch)

This commit is contained in:
autonomic-bot
2026-05-31 04:46:48 +00:00
parent 0c31af1b50
commit 588a08773b

View File

@ -36,8 +36,11 @@ def test_create_topic_roundtrip(live_app):
hdrs = _discourse.admin_headers(api_key, api_user)
# 3) Create a topic with a unique marker in title + body (raw must be >= ~20 chars).
# Discourse's `title_prettify` (on by default) capitalises the title's first letter, so we send a
# title that already starts capitalised — that normalisation is then a no-op and the exact-equality
# round-trip below stays faithful (the unique hex token is mid-string, untouched either way).
uniq = uuid.uuid4().hex[:10]
title = f"ccci topic {uniq}"
title = f"CCCI topic {uniq}"
marker = f"ccci-body-marker-{uniq}-roundtrip-padding-text"
status, body = harness_http.http_post(
f"{base}/posts.json",