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
Carlos Ramos Carreño
erp5
Commits
03bf7fb3
Commit
03bf7fb3
authored
Feb 13, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
free_subscription: py3
parent
6bbd903a
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 @
03bf7fb3
...
...
@@ -27,6 +27,7 @@
##############################################################################
import
unittest
import
requests
from
Products.ERP5Type.tests.utils
import
reindex
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.utils
import
DummyMailHost
...
...
@@ -308,12 +309,12 @@ class TestFreeSubscription(ERP5TypeTestCase):
def
stepClickUnsubscriptionLinkInEvent
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
from
six.moves.urllib.request
import
urlopen
link
=
sequence
[
'unsubscription_link'
]
self
.
logout
()
data
=
urlopen
(
link
)
self
.
assertNotIn
(
"Site Error"
,
data
)
self
.
assertNotIn
(
"You do not have enough permissions to access this page"
,
data
.
read
())
resp
=
requests
.
get
(
link
)
self
.
assertEqual
(
resp
.
status_code
,
200
,
(
resp
.
status_code
,
resp
.
content
))
self
.
assertNotIn
(
b"Site Error"
,
resp
.
content
)
self
.
assertNotIn
(
b"You do not have enough permissions to access this page"
,
resp
.
content
)
self
.
login
()
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