Update tests
This commit is contained in:
parent
546dc55077
commit
6f89e33d4f
17
tests/header_footer_entities.py
Normal file
17
tests/header_footer_entities.py
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Created : 2015-03-12
|
||||
|
||||
@author: Eric Lapouyade
|
||||
'''
|
||||
|
||||
from docxtpl import DocxTemplate
|
||||
|
||||
tpl=DocxTemplate('test_files/header_footer_entities_tpl.docx')
|
||||
|
||||
context = {
|
||||
'title' : 'Header and footer test',
|
||||
}
|
||||
|
||||
tpl.render(context)
|
||||
tpl.save('test_files/header_footer_entities.docx')
|
||||
BIN
tests/test_files/header_footer_entities.docx
Normal file
BIN
tests/test_files/header_footer_entities.docx
Normal file
Binary file not shown.
BIN
tests/test_files/header_footer_entities_tpl.docx
Normal file
BIN
tests/test_files/header_footer_entities_tpl.docx
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user