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
17
Merge Requests
17
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
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):
None
,
hosting_subscription
.
getPeriodicityWeekFrequency
())
# check start date and stop date of the subscription item,
# currently there
are 2 months
# currently there
is 1 month
now
=
DateTime
()
start_date
=
\
getClosestDate
(
target_date
=
now
,
precision
=
'day'
,
before
=
1
)
...
...
@@ -69,7 +69,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
self
.
assertEquals
(
0.0
,
open_order_line
.
getStartDate
().
second
())
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
(
stop_date
.
year
(),
open_order_line
.
getStopDate
().
year
())
self
.
assertEquals
(
...
...
@@ -94,8 +94,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
parent_uid
=
applied_rule
.
getUid
(),
sort_on
=
((
'movement.start_date'
,
'desc'
),)
)
# Check that simulation is created by the periodicity for
two months
self
.
assertEquals
(
2
,
# Check that simulation is created by the periodicity for
one month
self
.
assertEquals
(
1
,
len
(
simulation_movement_list
))
# 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