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
Paul Graydon
erp5
Commits
36eb1701
Commit
36eb1701
authored
Feb 09, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core_test: testAutoLogout py3
parent
7f9f5414
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 @
36eb1701
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
##############################################################################
##############################################################################
from
functools
import
partial
from
functools
import
partial
from
six.moves
import
cStringIO
as
StringIO
import
io
import
unittest
import
unittest
from
six.moves.urllib.parse
import
urlencode
from
six.moves.urllib.parse
import
urlencode
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
...
@@ -85,8 +85,8 @@ class TestAuoLogout(ERP5TypeTestCase):
...
@@ -85,8 +85,8 @@ class TestAuoLogout(ERP5TypeTestCase):
portal
.
absolute_url_path
()
+
'/view'
,
portal
.
absolute_url_path
()
+
'/view'
,
request_method
=
'POST'
,
request_method
=
'POST'
,
)
)
response
=
publish
(
stdin
=
StringIO
(
stdin
))
response
=
publish
(
stdin
=
io
.
BytesIO
(
stdin
.
encode
()
))
self
.
assertIn
(
'Welcome to ERP5'
,
response
.
getBody
())
self
.
assertIn
(
b
'Welcome to ERP5'
,
response
.
getBody
())
# check '__ac' cookie has set an expire timeout
# check '__ac' cookie has set an expire timeout
ac_cookie
=
response
.
getCookie
(
'__ac'
)
ac_cookie
=
response
.
getCookie
(
'__ac'
)
...
@@ -100,8 +100,8 @@ class TestAuoLogout(ERP5TypeTestCase):
...
@@ -100,8 +100,8 @@ class TestAuoLogout(ERP5TypeTestCase):
self
.
tic
()
self
.
tic
()
portal
.
portal_caches
.
clearAllCache
()
portal
.
portal_caches
.
clearAllCache
()
response
=
publish
(
stdin
=
StringIO
(
stdin
))
response
=
publish
(
stdin
=
io
.
BytesIO
(
stdin
.
encode
()
))
self
.
assertIn
(
'Welcome to ERP5'
,
response
.
getBody
())
self
.
assertIn
(
b
'Welcome to ERP5'
,
response
.
getBody
())
ac_cookie
=
response
.
getCookie
(
'__ac'
)
ac_cookie
=
response
.
getCookie
(
'__ac'
)
self
.
assertNotEqual
(
ac_cookie
,
None
)
self
.
assertNotEqual
(
ac_cookie
,
None
)
self
.
assertEqual
(
ac_cookie
.
get
(
normalizeCookieParameterName
(
'expires'
),
None
),
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