Fix broken sphinx tests.

Change-Id: I2c2046b4ef31c78731f25f3b8e579b05ca0953fb
This commit is contained in:
Ryan Petrello 2014-09-23 13:23:29 -04:00
parent baa816c820
commit 7cee58bce9
2 changed files with 12 additions and 5 deletions

View File

@ -20,11 +20,17 @@ class TestSphinxExt(unittest.TestCase):
def test_buildhtml(self): def test_buildhtml(self):
if not os.path.exists('.test_sphinxext/'): if not os.path.exists('.test_sphinxext/'):
os.makedirs('.test_sphinxext/') os.makedirs('.test_sphinxext/')
assert sphinx.main(['', try:
sphinx.main([
'',
'-b', 'html', '-b', 'html',
'-d', '.test_sphinxext/doctree', '-d', '.test_sphinxext/doctree',
docpath, docpath,
'.test_sphinxext/html']) == 0 '.test_sphinxext/html'
])
assert Exception("Should raise SystemExit 0")
except SystemExit as e:
assert e.code == 0
class TestDataTypeName(unittest.TestCase): class TestDataTypeName(unittest.TestCase):

View File

@ -10,6 +10,7 @@ testtools =
basedeps = basedeps =
transaction transaction
pecan pecan
cloud_sptheme
Sphinx Sphinx
Flask Flask