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
Titouan Soulard
slapos.core
Commits
d7d9decc
Commit
d7d9decc
authored
Mar 07, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_rss_style: test
parent
5ba57074
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
master/bt5/slapos_rss_style/TestTemplateItem/portal_components/test.erp5.testSlapOSRSSStyleSkins.py
...em/portal_components/test.erp5.testSlapOSRSSStyleSkins.py
+5
-5
No files found.
master/bt5/slapos_rss_style/TestTemplateItem/portal_components/test.erp5.testSlapOSRSSStyleSkins.py
View file @
d7d9decc
...
...
@@ -851,7 +851,7 @@ class TestBase_getTicketUrl(TestRSSSyleSkinsMixin):
self
.
assertIn
(
"%s/#/"
%
self
.
portal
.
absolute_url
(),
ticket
.
Base_getTicketUrl
())
web_site
=
self
.
portal
.
web_site_module
.
renderjs_oss
web_site
=
self
.
portal
.
web_site_module
.
slapos_master_panel
self
.
assertIn
(
"%s/#/"
%
web_site
.
absolute_url
(),
web_site
.
support_request_module
[
ticket
.
getId
()].
Base_getTicketUrl
())
...
...
@@ -861,7 +861,7 @@ class TestBase_getTicketUrl(TestRSSSyleSkinsMixin):
class
TestSlapOSSaleInvoiceTransaction_getRSSTitleAndDescription
(
TestRSSSyleSkinsMixin
):
def
test
(
self
):
def
test
_sale_invoice
(
self
):
invoice
=
self
.
portal
.
accounting_module
.
newContent
(
\
portal_type
=
"Sale Invoice Transaction"
,
reference
=
"TESTINVOICE-%s"
%
self
.
new_id
,
...
...
@@ -882,10 +882,10 @@ class TestSlapOSSaleInvoiceTransaction_getRSSTitleAndDescription(TestRSSSyleSkin
invoice
.
SaleInvoiceTransaction_getRSSDescription
())
invoice_via_website
=
\
self
.
portal
.
web_site_module
.
renderjs_oss
.
accounting_module
[
invoice
.
getId
()]
self
.
portal
.
web_site_module
.
slapos_master_panel
.
accounting_module
[
invoice
.
getId
()]
self
.
assertEqual
(
invoice_via_website
.
SaleInvoiceTransaction_getRSSTitle
(),
"[
RenderJS Runner
] %s %s"
%
(
text
,
invoice
.
getReference
()))
"[
SlapOS Master Panel
] %s %s"
%
(
text
,
invoice
.
getReference
()))
self
.
assertNotIn
(
invoice
.
Base_getTicketUrl
(),
...
...
@@ -898,6 +898,6 @@ class TestSlapOSSaleInvoiceTransaction_getRSSTitleAndDescription(TestRSSSyleSkin
invoice
.
setStartDate
(
DateTime
(
"02/01/2018"
))
self
.
assertEqual
(
invoice_via_website
.
SaleInvoiceTransaction_getRSSTitle
(),
"[
RenderJS Runner
] %s %s - (01/02/2018)"
%
(
text
,
invoice
.
getReference
()))
"[
SlapOS Master Panel
] %s %s - (01/02/2018)"
%
(
text
,
invoice
.
getReference
()))
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