Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
789ee507a8e0
Commit
ea61b0e2
authored
May 13, 2009
by
sylvain.thenault@logilab.fr
Browse files
use render
--HG-- branch : tls-sprint
parent
21d1db460cdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
devtools/testlib.py
View file @
789ee507
...
...
@@ -194,7 +194,7 @@ class WebTest(EnvBasedTC):
else
:
self
.
set_description
(
"testing %s, mod=%s (no rset)"
%
(
vid
,
view
.
__module__
))
if
template
is
None
:
# raw view testing, no template
viewfunc
=
view
.
dispatch
viewfunc
=
view
.
render
else
:
templateview
=
self
.
vreg
.
select_view
(
template
,
req
,
rset
,
view
=
view
,
**
kwargs
)
kwargs
[
'view'
]
=
view
...
...
@@ -327,7 +327,7 @@ class WebTest(EnvBasedTC):
for
action
in
self
.
list_actions_for
(
rset
):
yield
InnerTest
(
self
.
_testname
(
rset
,
action
.
id
,
'action'
),
action
.
url
)
for
box
in
self
.
list_boxes_for
(
rset
):
yield
InnerTest
(
self
.
_testname
(
rset
,
box
.
id
,
'box'
),
box
.
dispatch
)
yield
InnerTest
(
self
.
_testname
(
rset
,
box
.
id
,
'box'
),
box
.
render
)
@
staticmethod
def
_testname
(
rset
,
objid
,
objtype
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment