Brian Wignall
28f9f043e5
Get "make functest" (mostly) working again
2020-01-07 15:58:54 -08:00
Aleksandar Dimitrov
8df4e1ed83
Remove --separator command line argument
2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
93c27891f2
Fix numbering in csv.test
2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
02d9205af7
Allow separator to be overridden from command line
...
This also fixes that parsing separators on the command line and the
rules file was not handled the same way.
2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
8163053027
Add functional test
2020-01-05 14:45:57 -08:00
Simon Michael
8f1aa0981e
;make that auto posting test independent of current date
...
[ci skip]
2020-01-04 17:36:57 -08:00
Aleksandar Dimitrov
f55f814155
Fix auto postings test.
...
Happy new year!
2020-01-02 09:54:14 -08:00
Simon Michael
4026e08797
;tests: fix some func tests broken by c6da152e
2019-12-28 21:08:27 -08:00
Jacek Generowicz
24fbe313dd
;Fix rewrite tests after #457 fix
...
As a consequence of fixing #457 , two rewrite tests fail, because extra
quotes appear in the output of the commands being tested.
These quotes appear in comments which reflect the command which was
run in order to produce the output. Instead of
; generated-posting: = assets:bank and amt:<0
we now get
; generated-posting: = assets:bank and "amt:<0"
Given that the quotes around `amt:<0` are necessary for the command to
work properly, these quotes should really be there in the expected
output.
Hence this commit modifies the expected output of the tests, by adding
in the quotes. This makes the tests pass once more.
2019-12-08 18:33:43 +01:00
Jacek Generowicz
c6da152e9a
;convert extant addon tests to shellrunner format 3
2019-12-08 18:33:43 +01:00
Jacek Generowicz
4593963fef
;Disable tests according to discussion in #457
...
https://github.com/simonmichael/hledger/pull/1140#issuecomment-562793255
2019-12-08 18:33:43 +01:00
Jacek Generowicz
7394441728
;Add shelltests demonstrating bug reported in issue 457
2019-12-08 18:33:43 +01:00
Simon Michael
5b6dbe86b3
close: don't strip decimal zeros, causing misparsing ( fix #1137 )
2019-11-30 16:58:54 -08:00
Simon Michael
8b4ae4cd43
;csv: another commented test for auto-generation of balancing posting
...
and remove some junk.
[ci skip]
2019-11-23 12:54:34 -08:00
Simon Michael
464983f99a
;csv: add some commented tests for #1111/#1133
...
[ci skip]
2019-11-23 12:26:22 -08:00
Dmitry Astapov
aa051a05cf
lib: support generation of (un)balanced virtual postings in csv reader
2019-11-23 10:28:10 -08:00
Mykola Orliuk
6dbe925eed
cli: anonymize transaction code also
2019-11-18 17:42:22 -08:00
Mykola Orliuk
0a273561f7
cli: anonymize declared accounts also
...
Fixes simonmichael/hledger#901
2019-11-18 17:42:22 -08:00
Michael Kainer
79ca4a767e
cli: Add -% to compound balance commands
...
This commit introduces the commandline argument -%/--percent to show
percentages of the column's total instead of the absolute amounts for
each account in reports. The signs of the values are preserved.
This option is especially useful for the balance and incomestatement
commands.
If there are multiple commodities involved in a report hledger bails
with an error message. This can be avoided by using --cost. Also note
that if one uses -% with the balance command the chances are high that
all numbers are 0. This is due to the fact that by default balance sums
up to zero. If one wants to use -% in a meaningful way with balance one
has to add a query.
In order to keep the implementation as simple as possible --tree has no
influence over how the percentages are calculated, i.e., the percentages
always represent the fraction of the columns total. If one wants to know
the percentages relative to a parent account, one has to use a query to
narrow down the accounts.
2019-11-18 17:10:59 -08:00
Dmitry Astapov
87b82b6839
lib: roi does not fail on empty input data (+test)
2019-11-18 16:13:04 -08:00
Dmitry Astapov
e49da20f8c
test: balance-style -> balance-type
2019-11-13 09:06:25 -08:00
Dmitry Astapov
39bc183340
lib: csv reader gets balance-style directive
2019-11-13 09:06:25 -08:00
Simon Michael
c4d7cc198a
csv: finalise and check journals generated from CSV ( #1000 )
...
Invalid transactions generated from CSV will now be rejected.
I updated some csv tests to avoid this, except for 21, which
probably needs more cleanup.
2019-11-07 18:58:12 -08:00
Dmitry Astapov
fb5bca0b46
test: update csv tests for expenses:unknown being new default
2019-11-05 22:10:41 +00:00
Dmitry Astapov
c66ccc5cee
lib: do not try to balance transaction in csv reader
2019-11-05 21:16:42 +00:00
Dmitry Astapov
95ec5715cc
lib: better compatibility code in csv reader
2019-11-05 21:16:42 +00:00
Dmitry Astapov
d62f84bec2
lib: csv reader does not generate postings if account=""
2019-11-05 21:16:42 +00:00
Dmitry Astapov
8d24a40150
lib: csv parser fills out amounts on all postings, if possible
2019-11-05 21:16:42 +00:00
Dmitry Astapov
490d2407f4
test: expense:unknown -> expenses:unknown
2019-11-05 21:16:42 +00:00
Dmitry Astapov
3c7d5d466d
lib, doc, test: csv parser gains "end" command for "if" block
2019-11-05 21:16:42 +00:00
Dmitry Astapov
32cbe4c7b3
lib: better inference for unknown account names in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
38db7eb24d
lib: implement skip end in csv reader
2019-11-05 21:16:42 +00:00
Dmitry Astapov
f1ab107400
lib, doc: extended "skip" in "if" body to "skip N"
2019-11-05 21:16:42 +00:00
Dmitry Astapov
1acebe1493
test: csv reader test for #1001
2019-11-05 21:16:42 +00:00
Dmitry Astapov
5bd407b3b9
test: show that #1000 is fixed
2019-11-05 21:16:42 +00:00
Dmitry Astapov
fa61fdbe1b
test: add a test for #1076 (conditional line skips in csv)
2019-11-05 21:16:42 +00:00
Dmitry Astapov
f74df08e98
lib: fix accidental switch of income:unknown and expence:unknown in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
825b9ce5b3
lib: fixed amount vs amount1 conflict detection in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
f40d045251
test: updated csv parser tests to nicer format
2019-11-05 21:16:42 +00:00
Dmitry Astapov
24bba96ea2
lib: more robust multi-line joining in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
9440664fc4
test: cleaner tests for CSV parser proposal
2019-11-05 21:16:42 +00:00
Dmitry Astapov
09f8d62458
test: example on which recursive interpolation in CSV parser fails
2019-11-05 21:16:42 +00:00
Dmitry Astapov
e4476dd2f1
lib: more robust "unknown" account assignment in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
294fb4172c
test: recursive interpolation in csv rules ( #500 )
2019-11-05 21:16:42 +00:00
Dmitry Astapov
725bee02f2
test: csv file with multiline description ( #841 , #416 )
2019-11-05 21:16:42 +00:00
Dmitry Astapov
c5bab0ae40
test: added test for #570
2019-11-05 21:16:42 +00:00
Dmitry Astapov
0e1ead74c3
test: update old csv tests for new output format
2019-11-05 21:16:42 +00:00
Dmitry Astapov
a07a084fb7
test: tests for multi-posting CSV import
2019-11-05 21:16:42 +00:00
Simon Michael
312e772468
prices: style price amounts; always show full precision
2019-10-20 07:09:34 -07:00
Simon Michael
f09111b8b9
;prices: convert tests to new format
...
[ci skip]
2019-10-20 05:40:49 -07:00