Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Redner Odoo Module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Redner Odoo Module
Commits
36dcec66
Commit
36dcec66
authored
4 months ago
by
oury.balde
Browse files
Options
Downloads
Patches
Plain Diff
test: fix timing discrepancy in Redner template version field during tests
parent
c675052b
No related branches found
No related tags found
1 merge request
!67
Implement caching and optimization for Redner template handling
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+1
-0
1 addition, 0 deletions
NEWS.rst
tests/test_redner_template.py
+2
-5
2 additions, 5 deletions
tests/test_redner_template.py
with
3 additions
and
5 deletions
NEWS.rst
+
1
−
0
View file @
36dcec66
...
...
@@ -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
----------
...
...
This diff is collapsed.
Click to expand it.
tests/test_redner_template.py
+
2
−
5
View file @
36dcec66
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
oury.balde
@oury.balde
mentioned in commit
0401965dc771
·
4 months ago
mentioned in commit
0401965dc771
mentioned in commit 0401965dc7716436c297022b9e4fe87fed0ec27d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment