01.04.26
This commit is contained in:
@@ -71,13 +71,13 @@ class PurchaseTradeTestCase(ModuleTestCase):
|
||||
strategy.get_mtm(line, Decimal('10')),
|
||||
Decimal('250.00'))
|
||||
|
||||
def test_parse_numbers_supports_common_separators(self):
|
||||
'parse_numbers splits spaces commas semicolons and new lines'
|
||||
def test_parse_numbers_supports_inline_and_legacy_separators(self):
|
||||
'parse_numbers keeps supporting inline entry and legacy separators'
|
||||
self.assertEqual(
|
||||
valuation_module.ValuationProcess._parse_numbers(
|
||||
'PUR-001, PUR-002\nPUR-003;PUR-004'
|
||||
'PUR-001 PUR-002, PUR-003\nPUR-004;PUR-005'
|
||||
),
|
||||
['PUR-001', 'PUR-002', 'PUR-003', 'PUR-004'])
|
||||
['PUR-001', 'PUR-002', 'PUR-003', 'PUR-004', 'PUR-005'])
|
||||
|
||||
def test_get_generate_types_maps_business_groups(self):
|
||||
'valuation type groups map to the expected stored valuation types'
|
||||
|
||||
Reference in New Issue
Block a user