diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-09-21 17:57:53 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-09-21 18:01:08 +0200 |
commit | 94a7b1706026911fb868a0e568060d6ea5e4d14f (patch) | |
tree | b869e777d28ddadb8c9771d8fd16b44e26a7cc74 /test_generate_html.py | |
parent | 7db43f05a951c49c67f292a830a5ef3bafb2a7b6 (diff) | |
download | hesla-94a7b1706026911fb868a0e568060d6ea5e4d14f.tar.gz |
The proper event is pageshow, not load (because of Firefox caching)
Also, properly use app caching, and switch to lxml (generated HTML is
ugly)
See https://developer.mozilla.org/en-US/using_firefox_1.5_caching for
explanation.
Diffstat (limited to 'test_generate_html.py')
-rw-r--r-- | test_generate_html.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test_generate_html.py b/test_generate_html.py index 05e956e..3507b20 100644 --- a/test_generate_html.py +++ b/test_generate_html.py @@ -29,8 +29,7 @@ class TestProcessLosungen(unittest.TestCase): proc = subprocess.Popen(["tidy", "-e", "-f", "/dev/null"], stdin=subprocess.PIPE, bufsize=-1, close_fds=True) proc.communicate(self.los_elements) - # Generated HTML is missing DOCTYPE, so we get some warnings - self.assertLessEqual(proc.returncode, 1) + self.assertEqual(proc.returncode, 0) def test_attributes_on_articles(self): # Every article has to have id attribute |