fix: German quote style U+201C instead of U+201D (A11-T1)
Corrected closing quotation mark in hx-confirm attribute and test assertions from U+201D (RIGHT DOUBLE QUOTATION MARK) to U+201C (LEFT DOUBLE QUOTATION MARK), matching German typographic convention („...") and house style (line 114). Changes by code point: - finance/app/templates/szenarien.html line 17: 1 × U+201D → U+201C - finance/tests/test_gui.py lines 501, 521: 2 × U+201D → U+201C Template lines 17 and 114 now have identical quote code points: U+201E...U+201C. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -498,7 +498,7 @@ def test_szenarien_seite_hat_loeschen_button(client, db):
|
||||
# Verify delete button is present
|
||||
assert f'hx-delete="/api/scenarios/{sc.id}"' in r.text
|
||||
# Verify the full confirmation text in the page (brief requirement)
|
||||
assert 'Szenario „Wegwerf” mit allen Einträgen wirklich löschen?' in r.text
|
||||
assert 'Szenario „Wegwerf“ mit allen Einträgen wirklich löschen?' in r.text
|
||||
|
||||
# Parse HTML to verify the hx-confirm attribute has correct value with proper quotes
|
||||
class ButtonParser(HTMLParser):
|
||||
@@ -518,7 +518,7 @@ def test_szenarien_seite_hat_loeschen_button(client, db):
|
||||
parser.feed(r.text)
|
||||
assert parser.found_delete_button, "Delete button not found"
|
||||
# Verify the attribute value uses correct typographic quotes
|
||||
expected_confirm = 'Szenario „Wegwerf” mit allen Einträgen wirklich löschen?'
|
||||
expected_confirm = 'Szenario „Wegwerf“ mit allen Einträgen wirklich löschen?'
|
||||
assert parser.hx_confirm_value == expected_confirm, \
|
||||
f"hx-confirm attribute mismatch: got {repr(parser.hx_confirm_value)}, expected {repr(expected_confirm)}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user