Skip to content
Snippets Groups Projects
Commit 36dcec66 authored by oury.balde's avatar oury.balde
Browse files

test: fix timing discrepancy in Redner template version field during tests

parent c675052b
No related branches found
No related tags found
1 merge request!67Implement caching and optimization for Redner template handling
......@@ -9,6 +9,7 @@
- Restriction Added: Disallow the deletion of a template if its source is Redner.
(Deletion is still allowed for templates created in Odoo but not for those originating from Redner.)
- Implement caching and optimization for Redner template handling.
- test: Fix timing discrepancy in Redner template version field during tests.
18.0.1.0.1
----------
......
......@@ -19,8 +19,7 @@
##############################################################################
from unittest import mock
from odoo import fields
from unittest.mock import ANY
from .common import TestCommon
......@@ -89,9 +88,7 @@
}
)
redner_template = self.env["redner.template"].create(values)
base_template["version"] = fields.Datetime.to_string(
redner_template.create_date
)
base_template["version"] = ANY
updated_template["version"] = base_template["version"]
requests_put_mock.assert_not_called()
self.assertEqual(redner_template.redner_id, base_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment