Ensure that the documentation remains well formed
This commit is contained in:
parent
6b9699f244
commit
abbd97471e
20
tests/test_docs.py
Normal file
20
tests/test_docs.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import unittest, os
|
||||||
|
from xml.dom import minidom
|
||||||
|
from glob import glob
|
||||||
|
|
||||||
|
class DocsTest(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_well_formed(self):
|
||||||
|
for doc in glob('docs/*'):
|
||||||
|
if os.path.isdir(doc): continue
|
||||||
|
if doc.endswith('.css') or doc.endswith('.js'): continue
|
||||||
|
|
||||||
|
try:
|
||||||
|
minidom.parse(doc)
|
||||||
|
except:
|
||||||
|
self.fail('Not well formed: ' + doc);
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
self.assertTrue(True);
|
Loading…
x
Reference in New Issue
Block a user