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
Jérome Perrin
slapos.core
Commits
bc49a68e
Commit
bc49a68e
authored
Mar 12, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify and correct.
Start and stop dates are known from open order on first expand level.
parent
9b52ce78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
+2
-10
No files found.
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
View file @
bc49a68e
...
...
@@ -73,12 +73,6 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
stop_date
=
start_date
+
getNumberOfDayInMonth
(
start_date
)
self
.
assertEqual
(
stop_date
,
open_order_line
.
getStopDate
())
# Calculate the list of time frames
expected_time_frame_list
=
generateTimeFrameList
(
start_date
)
# test the test: have we generated 12th next months coverage?
self
.
assertEqual
(
13
,
len
(
expected_time_frame_list
))
simulation_movement_list
=
self
.
portal
.
portal_catalog
(
portal_type
=
'Simulation Movement'
,
parent_uid
=
applied_rule
.
getUid
(),
...
...
@@ -91,8 +85,6 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
# Check the list of expected simulation
idx
=
0
for
simulation_movement
in
simulation_movement_list
:
expected_start_date
=
expected_time_frame_list
[
idx
]
expected_stop_date
=
expected_time_frame_list
[
idx
+
1
]
# Check simulation movement property
self
.
assertEquals
(
1.0
,
simulation_movement
.
getQuantity
())
...
...
@@ -130,8 +122,8 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
self
.
assertEquals
(
None
,
simulation_movement
.
getAggregate
(
portal_type
=
"Software Release"
))
self
.
assertEqual
(
expected_
start_date
,
simulation_movement
.
getStartDate
())
self
.
assertEqual
(
expected_
stop_date
,
simulation_movement
.
getStopDate
())
self
.
assertEqual
(
start_date
,
simulation_movement
.
getStartDate
())
self
.
assertEqual
(
stop_date
,
simulation_movement
.
getStopDate
())
# delivered already
self
.
assertNotEqual
(
None
,
simulation_movement
.
getDelivery
())
...
...
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