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
Levin Zimmermann
erp5
Commits
9db8e4ec
Commit
9db8e4ec
authored
Apr 12, 2022
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/zope4py2' into zope4py3
parents
89f95c34
cb7680fe
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
91 deletions
+38
-91
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_third_parties.zpt
...enderjs_ui_accounting_report_zuite/test_third_parties.zpt
+2
-2
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_label_field_zuite/testMultiCssClass.zpt
...tests/renderjs_ui_label_field_zuite/testMultiCssClass.zpt
+3
-13
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_relation_field_zuite/testMultiRelationDefaultSortAndParameterList.zpt
...ld_zuite/testMultiRelationDefaultSortAndParameterList.zpt
+12
-47
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_relation_field_zuite/testRelationDefaultSortAndParameterList.zpt
...n_field_zuite/testRelationDefaultSortAndParameterList.zpt
+12
-26
product/ERP5/tests/testInvalidationBug.py
product/ERP5/tests/testInvalidationBug.py
+6
-3
product/ERP5Type/tests/runUnitTest.py
product/ERP5Type/tests/runUnitTest.py
+3
-0
No files found.
bt5/erp5_accounting_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_accounting_report_zuite/test_third_parties.zpt
View file @
9db8e4ec
...
...
@@ -17,8 +17,8 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<tr><td>
open
</td>
<td>
${base_url}/portal_caches/manage_clearAllCache
</td><td></td></tr>
<tr><td>
assert
Elemen
tPresent
</td>
<td>
//div[@class="system-msg" and contains(text(), "All cache factories cleared")]
</td><td></td></tr>
<tr><td>
assert
Tex
tPresent
</td>
<td>
All cache factories cleared
</td><td></td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.day())"
></td><td>
day
</td></tr>
<tr><td>
store
</td><td
tal:content=
"python: '{:0>#2d}'.format(now.month())"
></td><td>
month
</td></tr>
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_label_field_zuite/testMultiCssClass.zpt
View file @
9db8e4ec
...
...
@@ -16,29 +16,19 @@
<td>
${base_url}/Foo_view/my_title/manage_main
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
name=field_css_class
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
name=field_css_class
</td>
<td>
class1 class2 class3
</td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='submit']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
clickAndWait
</td>
<td>
//input[@name='submit']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
<tr>
...
...
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_relation_field_zuite/testMultiRelationDefaultSortAndParameterList.zpt
View file @
9db8e4ec
...
...
@@ -30,13 +30,6 @@
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name='field_sort']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//textarea[@name='field_sort']
</td>
...
...
@@ -45,31 +38,23 @@
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/Foo_viewRelationField/my_bar_category_title_list/manage_talesForm
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='field_parameter_list']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='field_parameter_list']
</td>
...
...
@@ -77,14 +62,14 @@
</tr>
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
...
...
@@ -236,46 +221,30 @@
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//textarea[@name='field_sort']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//textarea[@name='field_sort']
</td>
<td></td>
</tr>
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/Foo_viewRelationField/my_bar_category_title_list/manage_talesForm
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='field_parameter_list']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='field_parameter_list']
</td>
...
...
@@ -283,21 +252,17 @@
</tr>
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_relation_field_zuite/testRelationDefaultSortAndParameterList.zpt
View file @
9db8e4ec
...
...
@@ -45,14 +45,14 @@
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
...
...
@@ -63,13 +63,6 @@
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='field_parameter_list']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='field_parameter_list']
</td>
...
...
@@ -77,14 +70,14 @@
</tr>
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
...
...
@@ -252,14 +245,14 @@
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
...
...
@@ -270,13 +263,6 @@
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@name='field_parameter_list']
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//input[@name='field_parameter_list']
</td>
...
...
@@ -284,14 +270,14 @@
</tr>
<tr>
<td>
click
</td>
<td>
click
AndWait
</td>
<td>
//input[@value='Save Changes']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElemen
tPresent
</td>
<td>
//div[@class='system-msg']
</td>
<td>
assertTex
tPresent
</td>
<td>
Content changed.
</td>
<td></td>
</tr>
...
...
product/ERP5/tests/testInvalidationBug.py
View file @
9db8e4ec
...
...
@@ -37,10 +37,15 @@ import threading
import
unittest
import
urllib.request
,
urllib
.
parse
,
urllib
.
error
import
transaction
import
pkg_resources
from
DateTime
import
DateTime
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.utils
import
createZODBPythonScript
ZEO5
=
pkg_resources
.
parse_version
(
pkg_resources
.
get_distribution
(
'ZEO'
).
version
)
>=
pkg_resources
.
parse_version
(
'5'
)
class
TestInvalidationBug
(
ERP5TypeTestCase
):
def
getTitle
(
self
):
...
...
@@ -99,9 +104,7 @@ class TestInvalidationBug(ERP5TypeTestCase):
self
.
assertEqual
(
result_catalog_count
,
1
)
self
.
assertGreaterEqual
(
result_activity_count
,
1
)
# TODO: - skip this test for ZEO>=5 because it's covered upstream
# (and later remove it)
# - in slapos.git, enable server_sync in zope.conf
@
unittest
.
skipIf
(
ZEO5
,
"Covered upstream on ZEO>=5"
)
def
testLateInvalidationFromZEO
(
self
):
### Check unit test is run properly
from
ZEO.ClientStorage
import
ClientStorage
...
...
product/ERP5Type/tests/runUnitTest.py
View file @
9db8e4ec
...
...
@@ -545,6 +545,9 @@ def runUnitTestList(test_list, verbosity=1, debug=0, run_only=None):
# Set debug mode after importing ZopeLite that resets it to 0
cfg
.
debug_mode
=
debug
from
ZPublisher.HTTPRequest
import
HTTPRequest
HTTPRequest
.
retry_max_count
=
3
from
ZConfig.components.logger
import
handlers
,
logger
,
loghandler
import
logging
root_logger
=
logging
.
getLogger
()
...
...
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