fix errors/warnings in tests

sphinxext tests reference paths that don't exist. this patch
corrects it.

Change-Id: I6a9355a53e2f72de7eab17fc117334843ff8d369
This commit is contained in:
gordon chung 2014-08-22 16:09:54 -04:00 committed by Chris Dent
parent 2e1863db6c
commit baa816c820
3 changed files with 9 additions and 7 deletions

View File

@ -129,7 +129,7 @@ html_title = "WSME %s" % release
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] #html_static_path = ['_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format. # using the given strftime format.

View File

@ -4,7 +4,7 @@ API Documentation test
Example Example
~~~~~~~ ~~~~~~~
.. wsme:root:: wsme.sphinxext.SampleService .. wsme:root:: wsmeext.sphinxext.SampleService
:webpath: /api :webpath: /api
.. wsme:type:: MyType .. wsme:type:: MyType
@ -26,10 +26,10 @@ Example
An integer An integer
.. autotype:: wsme.sphinxext.SampleType .. autotype:: wsmeext.sphinxext.SampleType
:members: :members:
.. autoservice:: wsme.sphinxext.SampleService .. autoservice:: wsmeext.sphinxext.SampleService
:members: :members:

View File

@ -162,10 +162,12 @@ class FlaskrTestCase(unittest.TestCase):
def test_serversideerror(self): def test_serversideerror(self):
r = self.app.get('/divide_by_zero') r = self.app.get('/divide_by_zero')
assert r.status_code == 500 assert r.status_code == 500
data = json.loads(r.data)
self.assertEquals( self.assertEquals(
r.data, data,
'{"debuginfo": null, "faultcode": "Server", "faultstring": ' {"debuginfo": None,
'"integer division or modulo by zero"}' "faultcode": "Server",
"faultstring": "integer division or modulo by zero"}
) )
if __name__ == '__main__': if __name__ == '__main__':