line: Einheit für Anzahl, book: symbol für Asset + tests

This commit is contained in:
Frederik Jaeckel 2022-12-22 16:01:10 +01:00
parent 70416dbc12
commit 71aa1de06f
6 changed files with 29 additions and 14 deletions

View file

@ -104,7 +104,8 @@ class CbInvTestCase(CashbookTestCase, InvestmentTestCase):
self.assertEqual(book.lines[0].amount, Decimal('2.5'))
self.assertEqual(book.lines[0].quantity, Decimal('1.453'))
self.assertEqual(book.lines[0].quantity_digits, 3)
self.assertEqual(book.lines[0].quantity_symbol, 'u')
self.assertEqual(book.lines[0].quantity_uom.symbol, 'u')
self.assertEqual(book.symbol, 'usd/u')
@with_transaction()
def test_assetbook_book_uom(self):