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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
3df7b50c
Commit
3df7b50c
authored
Feb 18, 2024
by
Jérome Perrin
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testInventoryAPI: verify warning with BBB quantity unit
parent
491c6a54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
product/ERP5/tests/testInventoryAPI.py
product/ERP5/tests/testInventoryAPI.py
+9
-1
No files found.
product/ERP5/tests/testInventoryAPI.py
View file @
3df7b50c
...
...
@@ -36,6 +36,7 @@ import os
import
random
import
unittest
from
unittest
import
expectedFailure
import
warnings
from
AccessControl.SecurityManagement
import
newSecurityManager
from
DateTime
import
DateTime
...
...
@@ -4189,7 +4190,14 @@ class TestUnitConversionBackwardCompatibility(BaseTestUnitConversion):
delivery
.
confirm
()
delivery
.
start
()
delivery
.
stop
()
with
warnings
.
catch_warnings
(
record
=
True
)
as
catched_warnings
:
self
.
tic
()
self
.
assertIn
(
'quantity field of quantity_unit categories is deprecated. '
'Please use Quantity Unit Conversion Definitions instead and '
'reset the value of this field.'
,
[
str
(
w
.
message
)
for
w
in
catched_warnings
],
)
# inventories of that resource are indexed in grams
self
.
assertEqual
(
3010
,
...
...
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