Commit a29c3532 authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

Fix id tool tests

See merge request !1924
parents 72155b6c a0021640
Pipeline #34102 failed with stage
in 0 seconds
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment