[svn r38150] Fixed test that failed after the last change in apigen (removing the stacks
from the callable info boxes). --HG-- branch : trunk
This commit is contained in:
parent
fff15f50f3
commit
f8e50aabad
|
@ -126,7 +126,7 @@ class TestApiPageBuilder(AbstractBuilderTest):
|
||||||
pkg.main.sub.func(pkg.main.SomeClass(10))
|
pkg.main.sub.func(pkg.main.SomeClass(10))
|
||||||
t.end_tracing()
|
t.end_tracing()
|
||||||
apb = ApiPageBuilder(self.base, self.linker, dsa, self.fs_root,
|
apb = ApiPageBuilder(self.base, self.linker, dsa, self.fs_root,
|
||||||
self.namespace_tree, 'root docstring')
|
self.namespace_tree, self.project)
|
||||||
snippet = apb.build_callable_view('main.sub.func')
|
snippet = apb.build_callable_view('main.sub.func')
|
||||||
html = snippet.unicode()
|
html = snippet.unicode()
|
||||||
print html
|
print html
|
||||||
|
@ -147,8 +147,6 @@ class TestApiPageBuilder(AbstractBuilderTest):
|
||||||
pos7 = html.find('source: %s' % (self.fs_root.join('pkg/func.py'),),
|
pos7 = html.find('source: %s' % (self.fs_root.join('pkg/func.py'),),
|
||||||
pos6)
|
pos6)
|
||||||
assert pos7 > pos6
|
assert pos7 > pos6
|
||||||
pos8 = html.find('def func(arg1):', pos7)
|
|
||||||
assert pos8 > pos7
|
|
||||||
_checkhtmlsnippet(html)
|
_checkhtmlsnippet(html)
|
||||||
|
|
||||||
def test_build_function_pages(self):
|
def test_build_function_pages(self):
|
||||||
|
|
Loading…
Reference in New Issue