This commit is contained in:
2026-04-01 09:47:03 +02:00
parent 7643bf21fb
commit 44c4560f24
2 changed files with 6 additions and 6 deletions

View File

@@ -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'