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
Léo-Paul Géneau
slapos.core
Commits
4b31dced
Commit
4b31dced
authored
Jan 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow desing change.
parent
07af6bae
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 @
4b31dced
...
...
@@ -52,7 +52,7 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
None
,
hosting_subscription
.
getPeriodicityWeekFrequency
())
# check start date and stop date of the subscription item,
# currently there are
1
2 months
# currently there are 2 months
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
),
year
=
1
)
getClosestDate
(
target_date
=
now
,
precision
=
'month'
,
before
=
1
),
month
=
2
)
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
one year
self
.
assertEquals
(
1
2
,
# Check that simulation is created by the periodicity for
two months
self
.
assertEquals
(
2
,
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