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
c488c498
Commit
c488c498
authored
Mar 15, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5TypeFunctionalTestCase: py3
parent
df480b76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+2
-2
No files found.
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
View file @
c488c498
...
@@ -398,7 +398,7 @@ class FunctionalTestRunner:
...
@@ -398,7 +398,7 @@ class FunctionalTestRunner:
for
test_tr
in
test_table
.
xpath
(
'.//tr[contains(@class, "status_failed")]'
):
for
test_tr
in
test_table
.
xpath
(
'.//tr[contains(@class, "status_failed")]'
):
test_tr
.
set
(
'style'
,
'background-color: red;'
)
test_tr
.
set
(
'style'
,
'background-color: red;'
)
details_attribute_dict
=
{}
details_attribute_dict
=
{}
if
etree
.
tostring
(
test_table
).
find
(
"expected failure"
)
!=
-
1
:
if
"expected failure"
in
etree
.
tostring
(
test_table
,
encoding
=
"unicode"
)
:
expected_failure_amount
+=
1
expected_failure_amount
+=
1
else
:
else
:
failure_amount
+=
1
failure_amount
+=
1
...
@@ -406,7 +406,7 @@ class FunctionalTestRunner:
...
@@ -406,7 +406,7 @@ class FunctionalTestRunner:
details_attribute_dict
[
'open'
]
=
'true'
details_attribute_dict
[
'open'
]
=
'true'
detail_element
=
E
.
div
()
detail_element
=
E
.
div
()
detail_element
.
append
(
E
.
details
(
E
.
summary
(
test_name
),
test_table
,
**
details_attribute_dict
))
detail_element
.
append
(
E
.
details
(
E
.
summary
(
test_name
),
test_table
,
**
details_attribute_dict
))
detail
+=
etree
.
tostring
(
detail_element
)
detail
+=
etree
.
tostring
(
detail_element
,
encoding
=
"unicode"
)
tr_count
+=
1
tr_count
+=
1
success_amount
=
tr_count
-
1
-
failure_amount
-
expected_failure_amount
success_amount
=
tr_count
-
1
-
failure_amount
-
expected_failure_amount
if
detail
:
if
detail
:
...
...
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