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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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):
self
.
assertEqual
(
'SlapOS Subscription Open Sale Order'
,
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
def
test_alarm_HS_validated
(
self
):
...
...
@@ -235,6 +240,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self
.
portal
.
portal_preferences
.
getPreferredOpenSaleOrderLineTemplate
())
self
.
assertEqual
(
open_sale_order_line_template
.
getResource
(),
line
.
getResource
())
self
.
assertTrue
(
all
([
q
in
line
.
getCategoryList
()
\
for
q
in
open_sale_order_line_template
.
getCategoryList
()]))
self
.
assertEqual
(
None
,
line
.
getStartDate
())
def
test_usualLifetime_HostingSubscription
(
self
):
...
...
@@ -280,6 +287,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self
.
assertEqual
(
subscription
.
getRelativeUrl
(),
line
.
getAggregate
())
open_sale_order_line_template
=
self
.
portal
.
restrictedTraverse
(
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
(),
line
.
getResource
())
self
.
assertEqual
(
request_time
,
line
.
getStartDate
())
...
...
@@ -329,6 +338,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
self
.
assertEqual
(
subscription
.
getRelativeUrl
(),
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
(),
archived_line
.
getResource
())
self
.
assertEqual
(
request_time
,
archived_line
.
getStartDate
())
...
...
master/bt5/slapos_accounting/bt/revision
View file @
045be5d3
15
\ No newline at end of file
16
\ 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