forked from openlp/openlp
final clean ups
This commit is contained in:
parent
30ad9e5dca
commit
4b2d20ff77
@ -306,7 +306,7 @@ class TestLib(TestCase):
|
|||||||
with patch(u'openlp.core.lib.FormattingTags.get_html_tags') as mocked_get_tags:
|
with patch(u'openlp.core.lib.FormattingTags.get_html_tags') as mocked_get_tags:
|
||||||
# GIVEN: Mocked get_html_tags() method.
|
# GIVEN: Mocked get_html_tags() method.
|
||||||
mocked_get_tags.return_value = [{
|
mocked_get_tags.return_value = [{
|
||||||
u'desc': translate('OpenLP.FormattingTags', 'Black'),
|
u'desc': u'Black',
|
||||||
u'start tag': u'{b}',
|
u'start tag': u'{b}',
|
||||||
u'start html': u'<span style="-webkit-text-fill-color:black">',
|
u'start html': u'<span style="-webkit-text-fill-color:black">',
|
||||||
u'end tag': u'{/b}', u'end html': u'</span>', u'protected': True,
|
u'end tag': u'{/b}', u'end html': u'</span>', u'protected': True,
|
||||||
@ -314,6 +314,7 @@ class TestLib(TestCase):
|
|||||||
}]
|
}]
|
||||||
string_to_pass = u'ASDF<br>foo{br}bar {b}black{/b}'
|
string_to_pass = u'ASDF<br>foo{br}bar {b}black{/b}'
|
||||||
wanted_string = u'ASDF\nfoo\nbar black'
|
wanted_string = u'ASDF\nfoo\nbar black'
|
||||||
|
|
||||||
# WHEN: Clean the string.
|
# WHEN: Clean the string.
|
||||||
result_string = clean_tags(string_to_pass)
|
result_string = clean_tags(string_to_pass)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user