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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
80529b55
Commit
80529b55
authored
Mar 06, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_rss_style: test: Event_getRSSTextContent does not exist
parent
a425deb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
master/bt5/slapos_rss_style/TestTemplateItem/portal_components/test.erp5.testSlapOSRSSStyleSkins.py
...em/portal_components/test.erp5.testSlapOSRSSStyleSkins.py
+0
-57
No files found.
master/bt5/slapos_rss_style/TestTemplateItem/portal_components/test.erp5.testSlapOSRSSStyleSkins.py
View file @
80529b55
...
...
@@ -99,63 +99,6 @@ class TestRSSSyleSkinsMixin(SlapOSTestCaseMixinWithAbort):
return
software_installation
class
TestSlapOSEvent_getRSSTextContent
(
TestRSSSyleSkinsMixin
):
def
test_Event_getRSSTextContent
(
self
):
source
=
self
.
person
destination
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
,
title
=
"Person Destination %s"
%
self
.
new_id
,
reference
=
"TESTPERSD-%s"
%
self
.
new_id
,
default_email_text
=
"live_test_%s@example.org"
%
self
.
new_id
,
)
destination_2
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
,
title
=
"Person Destination 2 %s"
%
self
.
new_id
,
reference
=
"TESTPERSD2-%s"
%
self
.
new_id
,
default_email_text
=
"live_test_%s@example.org"
%
self
.
new_id
,
)
event
=
self
.
portal
.
event_module
.
newContent
(
title
=
"Test Event %s"
%
self
.
new_id
,
portal_type
=
"Web Message"
,
text_content
=
"Test Event %s"
%
self
.
new_id
)
self
.
portal
.
portal_skins
.
changeSkin
(
'RSS'
)
text_content
=
event
.
Event_getRSSTextContent
()
self
.
assertTrue
(
event
.
getTextContent
()
in
text_content
)
self
.
assertTrue
(
"Sender: "
in
text_content
,
"Sender: not in %s"
%
text_content
)
self
.
assertTrue
(
"Recipient: "
in
text_content
,
"Recipient: not in %s"
%
text_content
)
self
.
assertTrue
(
"Content:"
in
text_content
,
"Content: not in %s"
%
text_content
)
event
.
setSourceValue
(
source
)
text_content
=
event
.
Event_getRSSTextContent
()
self
.
assertTrue
(
"Sender: %s"
%
source
.
getTitle
()
in
text_content
,
"Sender: %s not in %s"
%
(
source
.
getTitle
(),
text_content
))
event
.
setDestinationValue
(
destination
)
text_content
=
event
.
Event_getRSSTextContent
()
self
.
assertTrue
(
"Recipient: %s"
%
destination
.
getTitle
()
in
text_content
,
"Recipient: %s not in %s"
%
(
destination
.
getTitle
(),
text_content
))
event
.
setDestinationValue
(
destination_2
)
text_content
=
event
.
Event_getRSSTextContent
()
self
.
assertTrue
(
"Recipient: %s"
%
destination_2
.
getTitle
()
in
text_content
,
"Recipient: %s not in %s"
%
(
destination
.
getTitle
(),
text_content
))
event
.
setDestinationValueList
([
destination
,
destination_2
])
text_content
=
event
.
Event_getRSSTextContent
()
self
.
assertTrue
(
"Recipient: %s,%s"
%
(
destination
.
getTitle
(),
destination_2
.
getTitle
())
in
text_content
,
"Recipient: %s,%s not in %s"
%
(
destination
.
getTitle
(),
destination_2
.
getTitle
(),
text_content
)
)
class
TestSlapOSSupportRequestRSS
(
TestRSSSyleSkinsMixin
):
def
test_WebSection_viewTicketListAsRSS
(
self
):
...
...
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