You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
441 B
Python
17 lines
441 B
Python
from pytest import main
|
|
from eynollah.eynollah.utils.xml import create_page_xml
|
|
from ocrd_models.ocrd_page import to_xml
|
|
|
|
PAGE_2019 = 'http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15'
|
|
|
|
|
|
def test_create_xml():
|
|
pcgts = create_page_xml('/path/to/img.tif', 100, 100)
|
|
xmlstr = to_xml(pcgts)
|
|
assert 'xmlns:pc="%s"' % PAGE_2019 in xmlstr
|
|
assert 'Metadata' in xmlstr
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main([__file__])
|