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
Jérome Perrin
slapos.core
Commits
045be5d3
Commit
045be5d3
authored
Nov 13, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check list of categories.
parent
3c7c559f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingSlapOSRequestUpdateHostingSubscriptionOpenSaleOrderAlarm.py
...apOSRequestUpdateHostingSubscriptionOpenSaleOrderAlarm.py
+11
-0
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingSlapOSRequestUpdateHostingSubscriptionOpenSaleOrderAlarm.py
View file @
045be5d3
...
@@ -75,6 +75,11 @@ class TestOpenSaleOrderAlarm(testSlapOSMixin):
...
@@ -75,6 +75,11 @@ class TestOpenSaleOrderAlarm(testSlapOSMixin):
self
.
assertEqual
(
'SlapOS Subscription Open Sale Order'
,
self
.
assertEqual
(
'SlapOS Subscription Open Sale Order'
,
open_sale_order
.
getTitle
())
open_sale_order
.
getTitle
())
self
.
assertEqual
(
0
,
len
(
open_sale_order
.
contentValues
()))
open_sale_order_template
=
self
.
portal
.
restrictedTraverse
(
self
.
portal
.
portal_preferences
.
getPreferredOpenSaleOrderTemplate
())
self
.
assertTrue
(
all
([
q
in
open_sale_order
.
getCategoryList
()
\
for
q
in
open_sale_order_template
.
getCategoryList
()]))
@
simulateHostingSubscription_requestUpdateOpenSaleOrder
@
simulateHostingSubscription_requestUpdateOpenSaleOrder
def
test_alarm_HS_validated
(
self
):
def
test_alarm_HS_validated
(
self
):
...
@@ -235,6 +240,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
...
@@ -235,6 +240,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self
.
portal
.
portal_preferences
.
getPreferredOpenSaleOrderLineTemplate
())
self
.
portal
.
portal_preferences
.
getPreferredOpenSaleOrderLineTemplate
())
self
.
assertEqual
(
open_sale_order_line_template
.
getResource
(),
self
.
assertEqual
(
open_sale_order_line_template
.
getResource
(),
line
.
getResource
())
line
.
getResource
())
self
.
assertTrue
(
all
([
q
in
line
.
getCategoryList
()
\
for
q
in
open_sale_order_line_template
.
getCategoryList
()]))
self
.
assertEqual
(
None
,
line
.
getStartDate
())
self
.
assertEqual
(
None
,
line
.
getStartDate
())
def
test_usualLifetime_HostingSubscription
(
self
):
def
test_usualLifetime_HostingSubscription
(
self
):
...
@@ -280,6 +287,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
...
@@ -280,6 +287,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self
.
assertEqual
(
subscription
.
getRelativeUrl
(),
line
.
getAggregate
())
self
.
assertEqual
(
subscription
.
getRelativeUrl
(),
line
.
getAggregate
())
open_sale_order_line_template
=
self
.
portal
.
restrictedTraverse
(
open_sale_order_line_template
=
self
.
portal
.
restrictedTraverse
(
self
.
portal
.
portal_preferences
.
getPreferredOpenSaleOrderLineTemplate
())
self
.
portal
.
portal_preferences
.
getPreferredOpenSaleOrderLineTemplate
())
self
.
assertTrue
(
all
([
q
in
line
.
getCategoryList
()
\
for
q
in
open_sale_order_line_template
.
getCategoryList
()]))
self
.
assertEqual
(
open_sale_order_line_template
.
getResource
(),
self
.
assertEqual
(
open_sale_order_line_template
.
getResource
(),
line
.
getResource
())
line
.
getResource
())
self
.
assertEqual
(
request_time
,
line
.
getStartDate
())
self
.
assertEqual
(
request_time
,
line
.
getStartDate
())
...
@@ -329,6 +338,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
...
@@ -329,6 +338,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self
.
assertEqual
(
subscription
.
getRelativeUrl
(),
self
.
assertEqual
(
subscription
.
getRelativeUrl
(),
archived_line
.
getAggregate
())
archived_line
.
getAggregate
())
self
.
assertTrue
(
all
([
q
in
archived_line
.
getCategoryList
()
\
for
q
in
open_sale_order_line_template
.
getCategoryList
()]))
self
.
assertEqual
(
open_sale_order_line_template
.
getResource
(),
self
.
assertEqual
(
open_sale_order_line_template
.
getResource
(),
archived_line
.
getResource
())
archived_line
.
getResource
())
self
.
assertEqual
(
request_time
,
archived_line
.
getStartDate
())
self
.
assertEqual
(
request_time
,
archived_line
.
getStartDate
())
...
...
master/bt5/slapos_accounting/bt/revision
View file @
045be5d3
15
16
\ No newline at end of file
\ No newline at end of file
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