Update tests
This commit is contained in:
@@ -395,7 +395,7 @@ def testFmtToDocX_ParagraphFormatting(mockGUI):
|
||||
doc._pars[-1].toXml(xTest)
|
||||
assert xmlToText(xTest) == (
|
||||
'<w:body><w:p><w:pPr><w:pStyle w:val="Normal" />'
|
||||
'<w:spacing w:before="0" w:after="0" w:line="252" /></w:pPr>'
|
||||
'<w:spacing w:before="0" w:after="0" w:line="252" w:lineRule="auto" /></w:pPr>'
|
||||
'<w:r><w:rPr /><w:t>Hello World</w:t></w:r></w:p></w:body>'
|
||||
)
|
||||
|
||||
|
||||
@@ -803,10 +803,6 @@ def testFmtToOdt_SaveFlat(mockGUI, fncPath, tstPaths, ipsumText):
|
||||
odt._isNovel = True
|
||||
odt.setHeaderFormat(nwHeadFmt.DOC_AUTO, 1)
|
||||
assert odt._headerFormat == nwHeadFmt.DOC_AUTO
|
||||
odt.setFirstLineIndent(True, 1.4, False)
|
||||
assert odt._firstIndent is True
|
||||
assert odt._fTextIndent == "0.499cm"
|
||||
assert odt._indentFirst is False
|
||||
|
||||
odt.setPageLayout(148, 210, 20, 18, 17, 15)
|
||||
assert odt._mDocWidth == "14.800cm"
|
||||
|
||||
Reference in New Issue
Block a user