Commit 23119503 authored by Tarek Ziadé's avatar Tarek Ziadé

testing a full check case

parent 5ac71381
......@@ -65,7 +65,7 @@ class check(Command):
if self.metadata:
self.check_metadata()
if self.restructuredtext:
if docutils:
if HAS_DOCUTILS:
self.check_restructuredtext()
elif self.strict:
raise DistutilsSetupError('The docutils package is needed.')
......
......@@ -85,6 +85,13 @@ class CheckTestCase(support.LoggingSilencer,
cmd.check_restructuredtext()
self.assertEquals(cmd._warnings, 0)
def test_check_all(self):
metadata = {'url': 'xxx', 'author': 'xxx'}
self.assertRaises(DistutilsSetupError, self._run,
{}, **{'strict': 1,
'restructuredtext': 1})
def test_suite():
return unittest.makeSuite(CheckTestCase)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment