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
139
Merge Requests
139
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
10090a25
Commit
10090a25
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
5eaddd89
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 @
10090a25
...
@@ -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