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
Guillaume Hervier
slapos.core
Commits
19a0f5df
Commit
19a0f5df
authored
Mar 21, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update assertions.
Delivery is stopped so invoice simulation WILL be present.
parent
1d41c84b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
+11
-4
No files found.
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
View file @
19a0f5df
...
@@ -120,16 +120,23 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -120,16 +120,23 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
self
.
assertEqual
(
start_date
,
simulation_movement
.
getStartDate
())
self
.
assertEqual
(
start_date
,
simulation_movement
.
getStartDate
())
self
.
assertEqual
(
stop_date
,
simulation_movement
.
getStopDate
())
self
.
assertEqual
(
stop_date
,
simulation_movement
.
getStopDate
())
# delivered already
# delivered already
...
self
.
assertNotEqual
(
None
,
simulation_movement
.
getDelivery
())
self
.
assertNotEqual
(
None
,
simulation_movement
.
getDelivery
())
self
.
assertEqual
(
'Sale Packing List Line'
,
self
.
assertEqual
(
'Sale Packing List Line'
,
simulation_movement
.
getDeliveryValue
().
getPortalType
())
simulation_movement
.
getDeliveryValue
().
getPortalType
())
#
packing list shall be
buildable
#
...so no
buildable
self
.
assertFalse
(
simulation_movement
.
isBuildable
())
self
.
assertFalse
(
simulation_movement
.
isBuildable
())
# no invoice movements on this level
# stopped...
self
.
assertEqual
(
0
,
self
.
assertEqual
(
'stopped'
,
simulation_movement
.
getSimulationState
())
# ...so invoice rule applied
self
.
assertEqual
(
1
,
len
(
simulation_movement
.
contentValues
(
portal_type
=
"Applied Rule"
)))
len
(
simulation_movement
.
contentValues
(
portal_type
=
"Applied Rule"
)))
# ...with one simulation movement
invoice_applied_rule
=
simulation_movement
.
contentValues
(
portal_type
=
"Applied Rule"
)[
0
]
self
.
assertEqual
(
1
,
len
(
invoice_applied_rule
.
contentValues
()))
# check next simulation movement
# check next simulation movement
idx
+=
1
idx
+=
1
...
...
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