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
0
Merge Requests
0
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
Rafael Monnerat
slapos.core
Commits
8324e906
Commit
8324e906
authored
Nov 29, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create real mixin to avoid specific test escaping.
parent
8798915c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
..._accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
+10
-7
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingAlarm.py
View file @
8324e906
...
...
@@ -1367,11 +1367,7 @@ class TestSlapOSManageBuildingCalculatingDeliveryAlarm(testSlapOSMixin):
def
test_Delivery_manageBuildingCalculatingDelivery_diverged
(
self
):
self
.
_test_Delivery_manageBuildingCalculatingDelivery
(
'diverged'
,
True
)
class
TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm
(
testSlapOSMixin
):
script
=
'Delivery_deliverConfirmedAggregatedSalePackingList'
portal_type
=
'Sale Packing List'
alarm
=
'slapos_deliver_confirmed_aggregated_sale_packing_list'
class
TestSlapOSConfirmedDeliveryMixin
(
testSlapOSMixin
):
def
_test
(
self
,
simulation_state
,
causality_state
,
specialise
,
positive
):
@
simulateByTitlewMark
(
self
.
script
)
def
_real
(
self
,
simulation_state
,
causality_state
,
specialise
,
positive
):
...
...
@@ -1412,7 +1408,6 @@ class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(testSlapOSMixin):
self
.
_test
(
'confirmed'
,
'calculating'
,
'sale_trade_condition_module/slapos_aggregated_trade_condition'
,
False
)
destination_state
=
'delivered'
@
withAbort
def
_test_script
(
self
,
simulation_state
,
causality_state
,
specialise
,
destination_state
,
consistency_failure
=
False
):
...
...
@@ -1460,8 +1455,16 @@ class TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm(testSlapOSMixin):
'sale_trade_condition_module/slapos_aggregated_trade_condition'
,
'confirmed'
,
True
)
class
TestSlapOSDeliverConfirmedAggregatedSalePackingListAlarm
(
TestSlapOSConfirmedDeliveryMixin
):
destination_state
=
'delivered'
script
=
'Delivery_deliverConfirmedAggregatedSalePackingList'
portal_type
=
'Sale Packing List'
alarm
=
'slapos_deliver_confirmed_aggregated_sale_packing_list'
class
TestSlapOSStopConfirmedAggregatedSaleInvoiceTransactionAlarm
(
TestSlapOS
DeliverConfirmedAggregatedSalePackingListAlarm
):
TestSlapOS
ConfirmedDeliveryMixin
):
destination_state
=
'stopped'
script
=
'Delivery_stopConfirmedAggregatedSaleInvoiceTransaction'
portal_type
=
'Sale Invoice Transaction'
...
...
master/bt5/slapos_accounting/bt/revision
View file @
8324e906
183
\ No newline at end of file
184
\ No newline at end of file
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