Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
33df3d93
Commit
33df3d93
authored
1 year ago
by
Emmy Vouriot
Committed by
Jérome Perrin
9 months ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove test because tested feature was removed WIP
parent
a1c4a879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
bt5/erp5_dms/TestTemplateItem/portal_components/test.erp5.testDms.py
...s/TestTemplateItem/portal_components/test.erp5.testDms.py
+10
-5
No files found.
bt5/erp5_dms/TestTemplateItem/portal_components/test.erp5.testDms.py
View file @
33df3d93
...
...
@@ -1898,12 +1898,17 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph
</html>
"""
web_page
.
edit
(
text_content
=
html_content
)
from
six.moves.html_parser
import
HTMLParseError
try
:
if
six
.
PY3
:
web_page
.
asStrippedHTML
()
except
HTMLParseError
:
expectedFailure
(
self
.
fail
)(
'Even BeautifulSoup is not able to parse such HTML'
)
# TODO(emmuvouriot): this test shouldn't exist anymore in Py3 since HTMLParseError has been removed
# The rationale being that the HTML parser never fails (except in strict mode, which is not used here).
else
:
from
six.moves.html_parser
import
HTMLParseError
try
:
web_page
.
asStrippedHTML
()
# TODO(emmuvouriot): does this even attempt to parse the code? Can the exception ever be thrown?
except
HTMLParseError
:
expectedFailure
(
self
.
fail
)(
'Even BeautifulSoup is not able to parse such HTML'
)
def
test_safeHTML_unknown_codec
(
self
):
"""Some html declare unknown codecs.
...
...
This diff is collapsed.
Click to expand it.
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