mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-07-05 08:59:57 +02:00
more code formatting
This commit is contained in:
parent
713b90e084
commit
1a95bca22d
24 changed files with 1408 additions and 1319 deletions
|
@ -4,11 +4,13 @@ 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__])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue