Commit 92f2cd62 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: fixup trade condition specialise

parent 50368d32
...@@ -177,7 +177,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin): ...@@ -177,7 +177,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin):
sale_trade_condition.validate() sale_trade_condition.validate()
# Create Trade Condition to create Deposit # Create Trade Condition to create Deposit
sale_trade_condition = self.portal.sale_trade_condition_module.newContent( self.portal.sale_trade_condition_module.newContent(
portal_type="Sale Trade Condition", portal_type="Sale Trade Condition",
reference="For deposit", reference="For deposit",
trade_condition_type="deposit", trade_condition_type="deposit",
...@@ -185,8 +185,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin): ...@@ -185,8 +185,7 @@ class TestSlapOSVirtualMasterScenarioMixin(DefaultScenarioMixin):
source_value=seller_organisation, source_value=seller_organisation,
source_section_value=seller_organisation, source_section_value=seller_organisation,
price_currency_value=currency, price_currency_value=currency,
) ).validate()
sale_trade_condition.validate()
# Create Trade Condition to create Project # Create Trade Condition to create Project
if is_virtual_master_accountable: if is_virtual_master_accountable:
...@@ -587,7 +586,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin): ...@@ -587,7 +586,7 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
assert len(inventory_list) == 1, len(inventory_list) assert len(inventory_list) == 1, len(inventory_list)
assert inventory_list[0].quantity == 1, inventory_list[0].quantity assert inventory_list[0].quantity == 1, inventory_list[0].quantity
resource_vcl = [ resource_vcl = [
'software_release/%s' % release_variation.getRelativeUrl(), #'software_release/%s' % release_variation.getRelativeUrl(),
'software_type/%s' % type_variation.getRelativeUrl() 'software_type/%s' % type_variation.getRelativeUrl()
] ]
resource_vcl.sort() resource_vcl.sort()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment