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
cubes
squareui
Commits
e0db60ed0b57
Commit
6758ef39
authored
Mar 05, 2019
by
Nsukami Patrick
Browse files
Test: drop use of 'tag' decorator
parent
c39883837801
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unittest_views.py
View file @
e0db60ed
import
unittest
from
logilab.common.testlib
import
tag
from
cubicweb.devtools.testlib
import
CubicWebTC
from
cubicweb.devtools.htmlparser
import
XMLValidator
...
...
@@ -7,12 +6,10 @@ from cubicweb.devtools.htmlparser import XMLValidator
class
BoostrapTheMainTemplateTC
(
CubicWebTC
):
@
tag
(
'index'
)
def
test_valid_xhtml_index
(
self
):
with
self
.
admin_access
.
web_request
()
as
req
:
self
.
view
(
'index'
,
req
=
req
)
@
tag
(
'error'
)
def
test_valid_xhtml_error
(
self
):
valid
=
self
.
content_type_validators
.
get
(
'text/html'
,
XMLValidator
)()
with
self
.
admin_access
.
web_request
()
as
req
:
...
...
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