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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
a29c3532
Commit
a29c3532
authored
Apr 17, 2024
by
Carlos Ramos Carreño
Browse files
Options
Browse Files
Download
Plain Diff
Fix id tool tests
See merge request
!1924
parents
72155b6c
a0021640
Pipeline
#34102
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testIdTool.py
...estTemplateItem/portal_components/test.erp5.testIdTool.py
+4
-0
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testIdTool.py
View file @
a29c3532
...
...
@@ -151,6 +151,7 @@ class TestIdTool(ERP5TypeTestCase):
# generateNewId expect str, but convert id_group when passed a wrong type
with
warnings
.
catch_warnings
(
record
=
True
)
as
recorded
:
warnings
.
simplefilter
(
"always"
)
self
.
assertEqual
(
self
.
id_tool
.
generateNewId
(
id_generator
=
id_generator
,
...
...
@@ -168,6 +169,7 @@ class TestIdTool(ERP5TypeTestCase):
id_group
=
'bytes'
,
),
0
)
with
warnings
.
catch_warnings
(
record
=
True
)
as
recorded
:
warnings
.
simplefilter
(
"always"
)
self
.
assertEqual
(
self
.
id_tool
.
generateNewId
(
id_generator
=
id_generator
,
...
...
@@ -269,6 +271,7 @@ class TestIdTool(ERP5TypeTestCase):
# generateNewIdList expect str, but convert id_group when passed a wrong type
with
warnings
.
catch_warnings
(
record
=
True
)
as
recorded
:
warnings
.
simplefilter
(
"always"
)
self
.
assertEqual
(
self
.
id_tool
.
generateNewIdList
(
id_generator
=
id_generator
,
...
...
@@ -287,6 +290,7 @@ class TestIdTool(ERP5TypeTestCase):
id_count
=
1
,
),
[
0
])
with
warnings
.
catch_warnings
(
record
=
True
)
as
recorded
:
warnings
.
simplefilter
(
"always"
)
self
.
assertEqual
(
self
.
id_tool
.
generateNewIdList
(
id_generator
=
id_generator
,
...
...
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