Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Boxiang Sun
slapos.core
Commits
414d2f9b
Commit
414d2f9b
authored
Sep 30, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Add test for SubscriptionRequestModule_getTicketFeedUrl
parent
3ae9b2a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.py
...ortal_components/test.erp5.testSlapOSSubscriptionSkins.py
+22
-1
No files found.
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.py
View file @
414d2f9b
...
...
@@ -1589,4 +1589,25 @@ class TestSubscriptionRequest_processStarted(TestSubscriptionSkinsMixin):
subscription_request
.
SubscriptionRequest_processStarted
(),
None
)
self
.
tic
()
self
.
assertEqual
(
subscription_request
.
getSimulationState
(),
"stopped"
)
\ No newline at end of file
self
.
assertEqual
(
subscription_request
.
getSimulationState
(),
"stopped"
)
class
TestSlapOSSubscriptionRequestModule_getTicketFeedUrl
(
TestSubscriptionSkinsMixin
):
def
test_getTicketFeedUrl
(
self
):
module
=
self
.
portal
.
subscription_request_module
self
.
assertRaises
(
ValueError
,
module
.
SubscriptionRequestModule_getTicketFeedUrl
)
person
=
self
.
makePerson
(
user
=
1
)
self
.
tic
()
self
.
login
(
person
.
getUserId
())
url
=
module
.
SubscriptionRequestModule_getTicketFeedUrl
()
self
.
assertIn
(
'SubscriptionRequestModule_viewSubscriptionRequestListAsRSS'
,
url
)
self
.
assertIn
(
module
.
absolute_url
(),
url
)
self
.
assertIn
(
'access_token_secret'
,
url
)
self
.
assertIn
(
'access_token='
,
url
)
self
.
assertIn
(
'portal_skin=RSS'
,
url
)
self
.
tic
()
# it gives the same URL as before
self
.
assertEqual
(
url
,
module
.
SubscriptionRequestModule_getTicketFeedUrl
())
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