diff options
author | John Wiegley <johnw@newartisans.com> | 2012-11-26 12:52:12 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-11-26 12:52:12 -0600 |
commit | 3445ddec096799168e8a12e96b22bcdc1c8d8cde (patch) | |
tree | 634bf21a298f750302e13ca218a1b06726fe4253 /test | |
parent | 2ac996d9165f87754077a937eb69d765e139c05b (diff) | |
parent | f27a9d7e9836a268cb810bb20183c6e73b160f99 (diff) | |
download | fork-ledger-3445ddec096799168e8a12e96b22bcdc1c8d8cde.tar.gz fork-ledger-3445ddec096799168e8a12e96b22bcdc1c8d8cde.tar.bz2 fork-ledger-3445ddec096799168e8a12e96b22bcdc1c8d8cde.zip |
Merge branch 'next' of github.com:ledger/ledger into next
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/xact_code.dat | 3 | ||||
-rw-r--r-- | test/regress/xact_code.py | 4 | ||||
-rw-r--r-- | test/regress/xact_code_py.test | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/test/regress/xact_code.dat b/test/regress/xact_code.dat new file mode 100644 index 00000000..60956a23 --- /dev/null +++ b/test/regress/xact_code.dat @@ -0,0 +1,3 @@ +2012-11-10 (C0-d3) Payee + Assets:Checking € -12,45 + Expenses:Expenditure diff --git a/test/regress/xact_code.py b/test/regress/xact_code.py new file mode 100644 index 00000000..64abb17d --- /dev/null +++ b/test/regress/xact_code.py @@ -0,0 +1,4 @@ +import ledger + +for post in ledger.read_journal('test/regress/xact_code.dat').query('expenses'): + print post.xact.code diff --git a/test/regress/xact_code_py.test b/test/regress/xact_code_py.test new file mode 100644 index 00000000..c22158e0 --- /dev/null +++ b/test/regress/xact_code_py.test @@ -0,0 +1,3 @@ +test python test/regress/xact_code.py +C0-d3 +end test |