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
0937530e
Commit
0937530e
authored
Feb 13, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
free_subscription: py3
parent
b59d25a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_free_subscription/TestTemplateItem/portal_components/test.erp5.testFreeSubscription.py
...eItem/portal_components/test.erp5.testFreeSubscription.py
+5
-4
No files found.
bt5/erp5_free_subscription/TestTemplateItem/portal_components/test.erp5.testFreeSubscription.py
View file @
0937530e
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
##############################################################################
##############################################################################
import
unittest
import
unittest
import
requests
from
Products.ERP5Type.tests.utils
import
reindex
from
Products.ERP5Type.tests.utils
import
reindex
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.utils
import
DummyMailHost
from
Products.ERP5Type.tests.utils
import
DummyMailHost
...
@@ -308,12 +309,12 @@ class TestFreeSubscription(ERP5TypeTestCase):
...
@@ -308,12 +309,12 @@ class TestFreeSubscription(ERP5TypeTestCase):
def
stepClickUnsubscriptionLinkInEvent
(
self
,
sequence
=
None
,
sequence_list
=
None
,
def
stepClickUnsubscriptionLinkInEvent
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
**
kw
):
from
six.moves.urllib.request
import
urlopen
link
=
sequence
[
'unsubscription_link'
]
link
=
sequence
[
'unsubscription_link'
]
self
.
logout
()
self
.
logout
()
data
=
urlopen
(
link
)
resp
=
requests
.
get
(
link
)
self
.
assertNotIn
(
"Site Error"
,
data
)
self
.
assertEqual
(
resp
.
status_code
,
200
,
(
resp
.
status_code
,
resp
.
content
))
self
.
assertNotIn
(
"You do not have enough permissions to access this page"
,
data
.
read
())
self
.
assertNotIn
(
b"Site Error"
,
resp
.
content
)
self
.
assertNotIn
(
b"You do not have enough permissions to access this page"
,
resp
.
content
)
self
.
login
()
self
.
login
()
def
stepCheckFreeSubscriptionRequestCreated
(
self
,
sequence
=
None
,
sequence_list
=
None
,
def
stepCheckFreeSubscriptionRequestCreated
(
self
,
sequence
=
None
,
sequence_list
=
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