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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
6039cfa3
Commit
6039cfa3
authored
Jan 30, 2025
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type: test skins for proper cache manager configuration
parent
4f569400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
product/ERP5Type/tests/CodingStyleTestCase.py
product/ERP5Type/tests/CodingStyleTestCase.py
+26
-0
No files found.
product/ERP5Type/tests/CodingStyleTestCase.py
View file @
6039cfa3
...
...
@@ -310,3 +310,29 @@ class CodingStyleTestCase(ERP5TypeTestCase):
self
.
portal
.
portal_workflow
[
workflow_id
].
checkConsistency
())
self
.
assertEqual
(
message_list
,
[])
def
test_skin_http_cache
(
self
):
self
.
maxDiff
=
None
skin_id_set
=
set
()
for
business_template
in
self
.
_getTestedBusinessTemplateValueList
():
skin_id_set
.
update
(
business_template
.
getTemplateSkinIdList
())
filter_extension_list
=
[
"js"
,
"css"
,
"json"
,
"html"
,
"git"
,
"ico"
,
"png"
]
# Init message list
message_list
=
[]
# Test skins
portal_skins
=
self
.
portal
.
portal_skins
for
skin_id
in
skin_id_set
:
skin
=
portal_skins
[
skin_id
]
for
_
,
document
in
skin
.
ZopeFind
(
skin
,
obj_metatypes
=
(
"Image"
,
"File"
,
"Filesystem Image"
,
"Filesytem File"
),
search_sub
=
True
):
object_id
=
document
.
id
if
object_id
.
split
(
"."
)[
-
1
]
in
filter_extension_list
and
\
document
.
ZCacheable_getManagerId
()
is
None
:
# the current file is not cached
message_list
.
append
(
document
.
absolute_url
(
relative
=
1
))
self
.
assertEqual
(
message_list
,
[])
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