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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
erp5
Commits
d1630216
Commit
d1630216
authored
Aug 08, 2023
by
Emmy Vouriot
Committed by
Jérome Perrin
Feb 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove test because tested feature was removed WIP
parent
b1d219c9
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 @
d1630216
...
...
@@ -1901,12 +1901,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.
...
...
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