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
0
Merge Requests
0
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
Rafael Monnerat
slapos.core
Commits
75d0df7b
Commit
75d0df7b
authored
Nov 13, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check more properties on line.
parent
045be5d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingSlapOSRequestUpdateHostingSubscriptionOpenSaleOrderAlarm.py
...apOSRequestUpdateHostingSubscriptionOpenSaleOrderAlarm.py
+12
-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 @
75d0df7b
...
@@ -242,6 +242,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
...
@@ -242,6 +242,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
line
.
getResource
())
line
.
getResource
())
self
.
assertTrue
(
all
([
q
in
line
.
getCategoryList
()
\
self
.
assertTrue
(
all
([
q
in
line
.
getCategoryList
()
\
for
q
in
open_sale_order_line_template
.
getCategoryList
()]))
for
q
in
open_sale_order_line_template
.
getCategoryList
()]))
self
.
assertEqual
(
open_sale_order_line_template
.
getQuantity
(),
line
.
getQuantity
())
self
.
assertEqual
(
open_sale_order_line_template
.
getPrice
(),
line
.
getPrice
())
self
.
assertEqual
(
None
,
line
.
getStartDate
())
self
.
assertEqual
(
None
,
line
.
getStartDate
())
def
test_usualLifetime_HostingSubscription
(
self
):
def
test_usualLifetime_HostingSubscription
(
self
):
...
@@ -291,6 +295,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
...
@@ -291,6 +295,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
for
q
in
open_sale_order_line_template
.
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
(
open_sale_order_line_template
.
getQuantity
(),
line
.
getQuantity
())
self
.
assertEqual
(
open_sale_order_line_template
.
getPrice
(),
line
.
getPrice
())
self
.
assertEqual
(
request_time
,
line
.
getStartDate
())
self
.
assertEqual
(
request_time
,
line
.
getStartDate
())
destroy_time
=
DateTime
(
'2012/02/01'
)
destroy_time
=
DateTime
(
'2012/02/01'
)
...
@@ -342,6 +350,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
...
@@ -342,6 +350,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
for
q
in
open_sale_order_line_template
.
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
(
open_sale_order_line_template
.
getQuantity
(),
line
.
getQuantity
())
self
.
assertEqual
(
open_sale_order_line_template
.
getPrice
(),
line
.
getPrice
())
self
.
assertEqual
(
request_time
,
archived_line
.
getStartDate
())
self
.
assertEqual
(
request_time
,
archived_line
.
getStartDate
())
# calculate stop date to be after now, begin with start date with precision
# calculate stop date to be after now, begin with start date with precision
...
...
master/bt5/slapos_accounting/bt/revision
View file @
75d0df7b
16
17
\ 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