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
140
Merge Requests
140
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
56b3c7d8
Commit
56b3c7d8
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
89605fc0
Pipeline
#39430
failed with stage
in 0 seconds
Changes
1
Pipelines
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 @
56b3c7d8
...
...
@@ -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