From df944929f82b473bbd155eac826420f0b38644eb Mon Sep 17 00:00:00 2001 From: thdox Date: Tue, 24 Feb 2015 10:42:37 +0100 Subject: Add baseline test for --price-db option. --- test/CheckBaselineTests.py | 1 - test/baseline/opt-price-db.dat | 2 ++ test/baseline/opt-price-db.test | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 test/baseline/opt-price-db.dat create mode 100644 test/baseline/opt-price-db.test diff --git a/test/CheckBaselineTests.py b/test/CheckBaselineTests.py index 563f8aa5..8c51ddef 100755 --- a/test/CheckBaselineTests.py +++ b/test/CheckBaselineTests.py @@ -31,7 +31,6 @@ class CheckBaselineTests (CheckOptions): 'no-color', 'no-pager' 'options', - 'price-db', 'price-exp', 'revalued-total', 'seed', diff --git a/test/baseline/opt-price-db.dat b/test/baseline/opt-price-db.dat new file mode 100644 index 00000000..abc51a0a --- /dev/null +++ b/test/baseline/opt-price-db.dat @@ -0,0 +1,2 @@ +P 2012-03-16 06:47:12 CAD $2.50 +P 2012-03-17 06:47:12 CAD $3.50 diff --git a/test/baseline/opt-price-db.test b/test/baseline/opt-price-db.test new file mode 100644 index 00000000..06021e4a --- /dev/null +++ b/test/baseline/opt-price-db.test @@ -0,0 +1,8 @@ +2012-03-17 KFC + Expenses:Food 20 CAD + Assets:Cash + +test pricedb --price-db test/baseline/opt-price-db.dat +P 2012/03/16 06:47:12 CAD $2.5 +P 2012/03/17 06:47:12 CAD $3.5 +end test -- cgit v1.2.3