Page MenuHomec4science

test_get_text_field.py
No OneTemporary

File Metadata

Created
Sat, Nov 9, 06:22

test_get_text_field.py

import lxml.etree as ET
from os import sep, path, remove
from os.path import isdir, isfile, dirname, basename
import shutil
import sys
import tempfile
import unittest
import warnings
import get_text_field
class TestGETIMAGEINFO(unittest.TestCase):
def setUp(self):
DATADIR = path.dirname(__file__) + sep + 'test_data'
self.xml_file = DATADIR + sep + 'N_VII_1_page138.xml'
self.fix_transkription_positions = DATADIR + sep + 'Mp_XIV_page419a.xml'
def test_main(self):
get_text_field.main(['/home/knister0/ownCloud/nietzscheDE/Bearbeitung_Faksimile/Mp_XVI/Mp-XVI-4,13.jpg','1260.3199','1339.36'])
get_text_field.main(['/home/knister0/ownCloud/myNietzscheDE/Druckmanuscripte/faksimiles/D-20a,1.jpg','1221.28','1446.08'])
def test_get_text_field_on_thumb(self):
pass
#tf, width, height = get_text_field.get_text_field_on_thumb('/home/knister0/ownCloud/Der_spaete_Nietzsche/DATA/faksimiles/Mp-XVII,243_thumb.jpg')
#print(tf, width, height)
if __name__ == "__main__":
unittest.main()

Event Timeline