Fix edition font UUID rebinding and Protocols translation layout
This commit is contained in:
@@ -381,3 +381,11 @@ def test_quota_failure_preserves_completed_translation_and_checkpoint():
|
||||
assert entries[0].translated_text == '已完成。'
|
||||
assert not any(e.translated_text for e in entries[1:])
|
||||
assert snapshots and snapshots[-1][0] == '已完成。'
|
||||
|
||||
|
||||
def test_styled_protocol_number_cannot_be_deleted():
|
||||
e = entry('<h1>Protocol <span><b>3</b></span> Title</h1>')
|
||||
missing = e.original_text.replace('3φ/', 'φ/')
|
||||
assert FormatRestorer().restore(missing, e.placeholders, original_text=e.original_text) == ('', False)
|
||||
localized = e.original_text.replace('3φ/', '三φ/')
|
||||
assert FormatRestorer().restore(localized, e.placeholders, original_text=e.original_text)[1]
|
||||
|
||||
Reference in New Issue
Block a user