[py-svn] r33519 - py/dist/py/apigen/rest/testing
fijal at codespeak.net
fijal at codespeak.net
Sat Oct 21 12:29:39 CEST 2006
Author: fijal
Date: Sat Oct 21 12:29:37 2006
New Revision: 33519
Modified:
py/dist/py/apigen/rest/testing/test_rest.py
Log:
Added skipped failing test.
Modified: py/dist/py/apigen/rest/testing/test_rest.py
==============================================================================
--- py/dist/py/apigen/rest/testing/test_rest.py (original)
+++ py/dist/py/apigen/rest/testing/test_rest.py Sat Oct 21 12:29:37 2006
@@ -19,6 +19,9 @@
def setup_module(mod):
mod.temppath = py.test.ensuretemp('restgen')
+def fun_():
+ pass
+
class SomeClass(object):
"""Some class definition"""
@@ -28,7 +31,7 @@
def method(self, a, b, c):
"""method docstring"""
return a + b + c
-
+
class SomeSubClass(SomeClass):
"""Some subclass definition"""
@@ -200,3 +203,16 @@
# assert data.find('Function: SomeClass.__init__') < data.find(
# 'Function: SomeClass.method')
+ def test_som_fun(self):
+ py.test.skip("Failing")
+ descs = {'fun_':fun_}
+ ds = DocStorage().from_dict(descs)
+ t = Tracer(ds)
+ t.start_tracing()
+ fun_()
+ t.end_tracing()
+ lg = DirectPaste()
+ tempdir = temppath.ensure("some_fun", dir=True)
+ r = RestGen(ds, lg, DirWriter(tempdir))
+ r.write()
+ self.check_rest(tempdir)
More information about the pytest-commit
mailing list