This commit is contained in:
parent
650aef9794
commit
ef850140e0
2 changed files with 14 additions and 1 deletions
|
@ -14,3 +14,7 @@ def test_format_product_lines():
|
|||
'8711327538481,liuk 0.80 "Ola Liuk" #ah=wi162664 #qty=8'
|
||||
assert Product(['5000112659184','colazero'], Decimal(1), 'Cola Zero', {'sligro': None}).format_line() == \
|
||||
'5000112659184,colazero 1.00 "Cola Zero" #sligro'
|
||||
assert Product(['8711327607569','8712566340309','magnumwhite'], Decimal(1.50), 'Magnum White chocolate', {'ah': None}).format_line() == \
|
||||
'8711327607569,8712566340309,magnumwhite 1.50 "Magnum White chocolate" #ah'
|
||||
assert Product(['8717677337712','8717677336036','8717677337729'], Decimal(1.95), 'Tony\'s Chocolonely Chocoladereep melk met karamel en zeezout, FT (47 gram)', {'sligro': None}).format_line() == \
|
||||
'8717677337712,8717677336036,8717677337729 1.95 "Tony\'s Chocolonely Chocoladereep melk met karamel en zeezout, FT (47 gram)" #sligro'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue