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
Léo-Paul Géneau
erp5
Commits
4c4cd37e
Commit
4c4cd37e
authored
Feb 18, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testInventoryAPI: verify warning with BBB quantity unit
parent
64a42d07
Changes
1
Hide 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 @
4c4cd37e
...
@@ -36,6 +36,7 @@ import os
...
@@ -36,6 +36,7 @@ import os
import
random
import
random
import
unittest
import
unittest
from
unittest
import
expectedFailure
from
unittest
import
expectedFailure
import
warnings
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
@@ -4189,7 +4190,14 @@ class TestUnitConversionBackwardCompatibility(BaseTestUnitConversion):
...
@@ -4189,7 +4190,14 @@ class TestUnitConversionBackwardCompatibility(BaseTestUnitConversion):
delivery
.
confirm
()
delivery
.
confirm
()
delivery
.
start
()
delivery
.
start
()
delivery
.
stop
()
delivery
.
stop
()
self
.
tic
()
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
# inventories of that resource are indexed in grams
self
.
assertEqual
(
3010
,
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