Skip to content
Permalink
Browse files

Add test for --average-lot-prices

  • Loading branch information
tbm committed Dec 25, 2019
1 parent b935b0c commit 8702c1079effb9df15a6022372ccfdc2e7d23eea
Showing with 16 additions and 1 deletion.
  1. +0 −1 test/CheckBaselineTests.py
  2. +16 −0 test/baseline/opt-average-lot-prices.test
@@ -21,7 +21,6 @@ def __init__(self, args):
self.untested_options = [
'anon',
'args-only',
'average-lot-prices',
'debug',
'download',
'force-pager',
@@ -0,0 +1,16 @@
2019-01-01 * Opening balance
Assets:Investments 1000.00 EUR
Equity:Opening balance -1000.00 EUR

2019-03-01 * Bought FOO
Assets:Investments 2 FOO @ 150.00 EUR
Assets:Investments -300.00 EUR

2019-06-01 * Bought FOO
Assets:Investments 1 FOO @ 180.00 EUR
Assets:Investments -180.00 EUR

test bal assets:investments --average-lot-prices
520.00 EUR
3 FOO {160.00 EUR} Assets:Investments
end test

0 comments on commit 8702c10

Please sign in to comment.
You can’t perform that action at this time.