diff options
Diffstat (limited to 'test_generate_html.py')
-rwxr-xr-x | test_generate_html.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test_generate_html.py b/test_generate_html.py index 23f7ad6..e14f6e1 100755 --- a/test_generate_html.py +++ b/test_generate_html.py @@ -5,11 +5,11 @@ import subprocess import xml.etree.ElementTree as et import lxml.html -TEST_FILE = "hes12kni.tab" +TEST_FILE = "hes24kni.tab" test_dict = {'no': '1', 'de_name': '1.Mose', 'cs_name': '1.Mojžíšova', 'de_abbr': 'Gn', 'test': '-', 'cs_abbr': 'Gn'} -TEST_LOSUNGEN = "hes12-01.xml" +TEST_LOSUNGEN = "hes24-01.xml" class TestProcessCSV(unittest.TestCase): @@ -75,14 +75,10 @@ class TestProcessLosungen(unittest.TestCase): root = lxml.html.fromstring(self.los_elements) script_element = root.xpath("//head/script") self.assertEqual(len(script_element), 2) - self.assertEqual(script_element[0].attrib["src"], "require.js") + self.assertEqual(script_element[0].attrib["src"], "config.js") style_element = root.xpath("//head/link[@rel='stylesheet']") self.assertEqual(len(style_element), 1) meta_element = root.xpath("//head/meta[@content]") self.assertEqual(meta_element[0].attrib["content"], "width=device-width, initial-scale=1.0, " + "maximum-scale=2.0, user-scalable=yes") - - -if __name__ == '__main__': - unittest.main() |