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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
90bc4fc4
Commit
90bc4fc4
authored
Sep 17, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability_test: fix pylint warning and enable coding style test
parent
64c68dcb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
4 deletions
+0
-4
bt5/erp5_scalability_test/SkinTemplateItem/portal_skins/erp5_scalability_test/ERP5Site_bootstrapScalabilityTest.py
...rp5_scalability_test/ERP5Site_bootstrapScalabilityTest.py
+0
-1
bt5/erp5_scalability_test/SkinTemplateItem/portal_skins/erp5_scalability_test/ERP5Site_createTestData.py
...al_skins/erp5_scalability_test/ERP5Site_createTestData.py
+0
-1
bt5/erp5_scalability_test/SkinTemplateItem/portal_skins/erp5_scalability_test/ERP5Site_getScalabilityTestMetric.py
...rp5_scalability_test/ERP5Site_getScalabilityTestMetric.py
+0
-1
bt5/erp5_scalability_test/bt/skip_coding_style_test
bt5/erp5_scalability_test/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_scalability_test/SkinTemplateItem/portal_skins/erp5_scalability_test/ERP5Site_bootstrapScalabilityTest.py
View file @
90bc4fc4
...
...
@@ -4,7 +4,6 @@ import random
import
string
import
json
request
=
context
.
REQUEST
portal
=
context
.
getPortalObject
()
portal_catalog
=
portal
.
portal_catalog
...
...
bt5/erp5_scalability_test/SkinTemplateItem/portal_skins/erp5_scalability_test/ERP5Site_createTestData.py
View file @
90bc4fc4
...
...
@@ -59,6 +59,5 @@ try:
)
user
.
validate
()
except
Exception
as
e
:
status_code
=
1
error_message
=
str
(
e
)
raise
e
bt5/erp5_scalability_test/SkinTemplateItem/portal_skins/erp5_scalability_test/ERP5Site_getScalabilityTestMetric.py
View file @
90bc4fc4
...
...
@@ -11,5 +11,4 @@ catalog_kw = {'creation_date': {'query': (now_minus_6, now_minus_1), 'range': 'm
sale_order_count
=
len
(
portal_catalog
(
portal_type
=
"Sale Order"
,
**
catalog_kw
))
person_per_hour
=
60
*
person_count
/
5
sale_order_per_hour
=
60
*
sale_order_count
/
5
output_string
=
"""Person: %r doc/hour SaleOrder: %r doc/hour"""
%
(
person_per_hour
,
sale_order_per_hour
)
return
json
.
dumps
({
"person_per_hour"
:
person_per_hour
,
"sale_order_per_hour"
:
sale_order_per_hour
})
bt5/erp5_scalability_test/bt/skip_coding_style_test
deleted
100644 → 0
View file @
64c68dcb
1
\ No newline at end of file
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