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
Roque
slapos.core
Commits
246e3724
Commit
246e3724
authored
Dec 31, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test.
Maximum subscription date is closed on the 28.
parent
54b09916
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
..._accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
+2
-0
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
View file @
246e3724
...
@@ -802,6 +802,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
...
@@ -802,6 +802,8 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
subscription
.
getPeriodicityMonthDay
())
subscription
.
getPeriodicityMonthDay
())
start_date
=
addToDate
(
line
.
getStartDate
(),
to_add
=
{
'month'
:
1
})
start_date
=
addToDate
(
line
.
getStartDate
(),
to_add
=
{
'month'
:
1
})
start_date
=
addToDate
(
start_date
,
to_add
=
{
'second'
:
-
1
})
start_date
=
addToDate
(
start_date
,
to_add
=
{
'second'
:
-
1
})
while
start_date
.
day
()
>=
28
:
start_date
=
addToDate
(
start_date
,
to_add
=
{
'day'
:
-
1
})
self
.
assertEqual
(
start_date
,
line
.
getStopDate
())
self
.
assertEqual
(
start_date
,
line
.
getStopDate
())
def
test_usualLifetime_HostingSubscription
(
self
):
def
test_usualLifetime_HostingSubscription
(
self
):
...
...
master/bt5/slapos_accounting/bt/revision
View file @
246e3724
242
243
\ 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