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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a55d8cee
Commit
a55d8cee
authored
Feb 09, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core_test: testAutoLogout py3
parent
a37903ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testAutoLogout.py
...emplateItem/portal_components/test.erp5.testAutoLogout.py
+5
-5
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testAutoLogout.py
View file @
a55d8cee
...
...
@@ -29,7 +29,7 @@
##############################################################################
from
functools
import
partial
from
six.moves
import
cStringIO
as
StringIO
import
io
import
unittest
from
six.moves.urllib.parse
import
urlencode
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
...
...
@@ -85,8 +85,8 @@ class TestAuoLogout(ERP5TypeTestCase):
portal
.
absolute_url_path
()
+
'/view'
,
request_method
=
'POST'
,
)
response
=
publish
(
stdin
=
StringIO
(
stdin
))
self
.
assertIn
(
'Welcome to ERP5'
,
response
.
getBody
())
response
=
publish
(
stdin
=
io
.
BytesIO
(
stdin
.
encode
()
))
self
.
assertIn
(
b
'Welcome to ERP5'
,
response
.
getBody
())
# check '__ac' cookie has set an expire timeout
ac_cookie
=
response
.
getCookie
(
'__ac'
)
...
...
@@ -100,8 +100,8 @@ class TestAuoLogout(ERP5TypeTestCase):
self
.
tic
()
portal
.
portal_caches
.
clearAllCache
()
response
=
publish
(
stdin
=
StringIO
(
stdin
))
self
.
assertIn
(
'Welcome to ERP5'
,
response
.
getBody
())
response
=
publish
(
stdin
=
io
.
BytesIO
(
stdin
.
encode
()
))
self
.
assertIn
(
b
'Welcome to ERP5'
,
response
.
getBody
())
ac_cookie
=
response
.
getCookie
(
'__ac'
)
self
.
assertNotEqual
(
ac_cookie
,
None
)
self
.
assertEqual
(
ac_cookie
.
get
(
normalizeCookieParameterName
(
'expires'
),
None
),
None
)
...
...
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