diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-12-23 18:00:19 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2023-12-23 23:53:21 +0100 |
commit | da1097ae813b0b901036cd3a5fea1295f41b4238 (patch) | |
tree | 699da2eec564a78f7b4f42659649be26887e6ad4 /test_generate_html.py | |
parent | 5c5ac9623101f04468a475e78031538aeffee90b (diff) | |
download | hesla-da1097ae813b0b901036cd3a5fea1295f41b4238.tar.gz |
Prepare for the year 2024.
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() |