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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
835990b1
Commit
835990b1
authored
Feb 13, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only one month is plannified
parent
1bbb0a40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
+4
-4
No files found.
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
View file @
835990b1
...
@@ -52,7 +52,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -52,7 +52,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
None
,
hosting_subscription
.
getPeriodicityWeekFrequency
())
None
,
hosting_subscription
.
getPeriodicityWeekFrequency
())
# check start date and stop date of the subscription item,
# check start date and stop date of the subscription item,
# currently there
are 2 months
# currently there
is 1 month
now
=
DateTime
()
now
=
DateTime
()
start_date
=
\
start_date
=
\
getClosestDate
(
target_date
=
now
,
precision
=
'day'
,
before
=
1
)
getClosestDate
(
target_date
=
now
,
precision
=
'day'
,
before
=
1
)
...
@@ -69,7 +69,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -69,7 +69,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
self
.
assertEquals
(
self
.
assertEquals
(
0.0
,
open_order_line
.
getStartDate
().
second
())
0.0
,
open_order_line
.
getStartDate
().
second
())
stop_date
=
addToDate
(
stop_date
=
addToDate
(
getClosestDate
(
target_date
=
now
,
precision
=
'month'
,
before
=
1
),
month
=
2
)
getClosestDate
(
target_date
=
now
,
precision
=
'month'
,
before
=
1
),
month
=
1
)
self
.
assertEquals
(
self
.
assertEquals
(
stop_date
.
year
(),
open_order_line
.
getStopDate
().
year
())
stop_date
.
year
(),
open_order_line
.
getStopDate
().
year
())
self
.
assertEquals
(
self
.
assertEquals
(
...
@@ -94,8 +94,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -94,8 +94,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
parent_uid
=
applied_rule
.
getUid
(),
parent_uid
=
applied_rule
.
getUid
(),
sort_on
=
((
'movement.start_date'
,
'desc'
),)
sort_on
=
((
'movement.start_date'
,
'desc'
),)
)
)
# Check that simulation is created by the periodicity for
two months
# Check that simulation is created by the periodicity for
one month
self
.
assertEquals
(
2
,
self
.
assertEquals
(
1
,
len
(
simulation_movement_list
))
len
(
simulation_movement_list
))
# Check the list of expected simulation
# Check the list of expected simulation
...
...
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