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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
3307b024
Commit
3307b024
authored
Oct 13, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zope4: depend on Products.CMFCore >= 2.6.0
parent
55d64244
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testCookieCrumbler.py
...ateItem/portal_components/test.erp5.testCookieCrumbler.py
+2
-1
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testCookieCrumbler.py
View file @
3307b024
...
@@ -23,6 +23,7 @@ from AccessControl.User import UserFolder
...
@@ -23,6 +23,7 @@ from AccessControl.User import UserFolder
from
Products.CMFCore.CookieCrumbler
import
CookieCrumbler
from
Products.CMFCore.CookieCrumbler
import
CookieCrumbler
from
Products.CMFCore.tests.test_CookieCrumbler
import
makerequest
from
Products.CMFCore.tests.test_CookieCrumbler
import
makerequest
from
Products.CMFCore.tests.test_CookieCrumbler
import
CookieCrumblerTests
from
Products.CMFCore.tests.test_CookieCrumbler
import
CookieCrumblerTests
from
Products.CMFCore.tests.test_CookieCrumbler
import
normalizeCookieParameterName
class
ERP5CookieCrumblerTests
(
CookieCrumblerTests
):
class
ERP5CookieCrumblerTests
(
CookieCrumblerTests
):
""" Modify original CMFCore Cookie Crumbler unit test to test long login """
""" Modify original CMFCore Cookie Crumbler unit test to test long login """
...
@@ -87,7 +88,7 @@ class ERP5CookieCrumblerTests (CookieCrumblerTests):
...
@@ -87,7 +88,7 @@ class ERP5CookieCrumblerTests (CookieCrumblerTests):
self
.
credentials
=
base64
.
encodestring
(
'%s:%s'
%
(
long_name
,
long_pass
)).
replace
(
'
\
012
'
,
''
)
self
.
credentials
=
base64
.
encodestring
(
'%s:%s'
%
(
long_name
,
long_pass
)).
replace
(
'
\
012
'
,
''
)
self
.
assertEqual
(
resp
.
cookies
[
'__ac'
][
'value'
],
self
.
assertEqual
(
resp
.
cookies
[
'__ac'
][
'value'
],
self
.
credentials
)
self
.
credentials
)
self
.
assertEqual
(
resp
.
cookies
[
'__ac'
][
'path'
],
'/'
)
self
.
assertEqual
(
resp
.
cookies
[
'__ac'
][
normalizeCookieParameterName
(
'path'
)
],
'/'
)
def
testCacheHeaderDisabled
(
self
):
def
testCacheHeaderDisabled
(
self
):
# Cache header is forcibly set on any authenticated user independently from
# Cache header is forcibly set on any authenticated user independently from
...
...
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