diff --git a/tests/__snapshots__/test_internal_api-test_get_ledger_data.json b/tests/__snapshots__/test_internal_api-test_get_ledger_data.json index 122e1e944..9aea8c372 100644 --- a/tests/__snapshots__/test_internal_api-test_get_ledger_data.json +++ b/tests/__snapshots__/test_internal_api-test_get_ledger_data.json @@ -1 +1 @@ -{"account_details":{"Assets:Testing:MultipleCommodities":{"balance_string":null,"close_date":null,"last_entry":{"date":"2000-01-03","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"3f43843fea1277977ca64674e0255cf3ac68b8e5900c57a2636d48a197f5569d","lineno":5809},"uptodate_status":null},"Assets:US:BayBook:Vacation":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"96bfce852ea742b9a298e7a3d9d4041d6331bb38a1d617a779aadae04f6eb8db","lineno":3760},"uptodate_status":null},"Assets:US:BofA":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-01-01","entry_hash":"ENTRY_HASH"},"meta":{"address":"123 America Street, LargeTown, USA","filename":"TEST_DATA_DIR/long-example.beancount","hash":"912cf5121094934864835d9c54bd0947bdbd8b1d8138d3193a90550a7f712411","institution":"Bank of America","lineno":78,"phone":"+1.012.345.6789"},"uptodate_status":null},"Assets:US:BofA:Checking":{"balance_string":"TODAY balance Assets:US:BofA:Checking 1632.79 USD\n","close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"account":"00234-48574897","fava-uptodate-indication":true,"filename":"TEST_DATA_DIR/long-example.beancount","hash":"ba589f59dcb7be510f0982f58d50bcef15c96003b3c4f31dc95257c33303255d","lineno":82},"uptodate_status":"yellow"},"Assets:US:ETrade:Cash":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"a05c23d8b628f68e165b9982438ff4c8351f540bff6ac46c290ed01e64cd7655","lineno":2739},"uptodate_status":null},"Assets:US:ETrade:GLD":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"4431891b9c4c6b147e88bc6fff5a39b7053c7ffb98c22ee9185654534d4df9c7","lineno":2743},"uptodate_status":null},"Assets:US:ETrade:ITOT":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-11-23","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"9493c2ce79da406c96933ae8756e260299d5074843c39d4c2a31228b47e18728","lineno":2740},"uptodate_status":null},"Assets:US:ETrade:VEA":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"994835232fa98ca1670832158aa99dbd5611b736cdeb34796680a3bfd1927b7c","lineno":2741},"uptodate_status":null},"Assets:US:ETrade:VHT":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-20","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"8db29d4408966684fc2b3380a40331b63b5783d157a7b016dda2b9b713457110","lineno":2742},"uptodate_status":null},"Assets:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"5240cc4d1ac365736b30826f608a824950b96632e4d9b33806c9671fdfb8ceaf","lineno":4968},"uptodate_status":null},"Assets:US:Vanguard":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-01-01","entry_hash":"ENTRY_HASH"},"meta":{"address":"P.O. Box 1110, Valley Forge, PA 19482-1110","filename":"TEST_DATA_DIR/long-example.beancount","hash":"785380d89802bdfbe36f59b97b39aca2f7c92033b12fc77e6de7109d06da1650","institution":"Vanguard Group","lineno":2965,"phone":"+1.800.523.1188"},"uptodate_status":null},"Assets:US:Vanguard:Cash":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"88ae5710fd00ad6f1141ad0eaf8573cb6707a3c68649d04556dbbd62cbb69d37","lineno":2970,"number":"882882"},"uptodate_status":null},"Assets:US:Vanguard:RGAGX":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"baa9e93852d6fa64220def7a39c774bf028120cd8bfad5e8cef9f2d0e76409fa","lineno":2963,"number":"882882"},"uptodate_status":null},"Assets:US:Vanguard:VBMPX":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"b8423fa31225a2b3a4d97ec1a399030e19c92cebf5c8cff5982e2684ac943ec5","lineno":2961,"number":"882882"},"uptodate_status":null},"Equity:Opening-Balances":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-01-01","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"671dd1c11486c95d0386f6be56f0e71fd55835c4e30f5b296c42720e423087aa","lineno":71},"uptodate_status":null},"Expenses:Financial:Commissions":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"41f1a26d3d391226173ed0423c319ec3a614f867fdcd53b64fee78777c7dd193","lineno":5064},"uptodate_status":null},"Expenses:Financial:Fees":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-04","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"1e2885178436a65ca63e845d4eaec723176eb981a5b075a10a74095f0abce31d","lineno":5063},"uptodate_status":null},"Expenses:Food:Alcohol":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-02-01","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"e81d51cb3347ef5a6730e5b2ad694048de84cbc022e4c2811f5d3f127241064b","lineno":5057},"uptodate_status":null},"Expenses:Food:Coffee":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-14","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"cefcb15a5f68904c5a62b272140d054dd6ca38207cdf3441438047ce25c200e2","lineno":5056},"uptodate_status":null},"Expenses:Food:Groceries":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-21","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"96efdddae8f5defbe4c1bfce7e29159a2c9778b89e1a9db91314b157db108731","lineno":5054},"uptodate_status":null},"Expenses:Food:Restaurant":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-07","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"ec27051bb955ba1554953e3eb8102ffed8397e41a6cfc4e1abc403d4c5d821de","lineno":5055},"uptodate_status":null},"Expenses:Health:Dental:Insurance":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"845b3787b511d8b46be02ee126946ebd7e912d9a1e37138bb9e9cc195099f293","lineno":3764},"uptodate_status":null},"Expenses:Health:Life:GroupTermLife":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"f431ef72de3f18e6fcd6a692393bd5bb62c7673fdc49a506e94d8949ef8e6ed8","lineno":3762},"uptodate_status":null},"Expenses:Health:Medical:Insurance":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"65aec641471f2eb5314f70189dc48625ea7788480b32928ee7ea8127ed84d036","lineno":3763},"uptodate_status":null},"Expenses:Health:Vision:Insurance":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"12de76c74ad7c3600ad162c691442ed09ec57047d169c90a936be44d4a9c8a77","lineno":3765},"uptodate_status":null},"Expenses:Home:Electricity":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"bacad9701a8efef9798dc0c8c42eb2f9eab878ca08b7f7504458ebcec46356e2","lineno":5060},"uptodate_status":null},"Expenses:Home:Internet":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-21","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"902609aa6db5d74fb880b71fbc8d7fbe05c7500e9a32799a9f80729e4beb625b","lineno":5061},"uptodate_status":null},"Expenses:Home:Phone":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-20","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"9a03ee3832c7e73e030f5faebb27d688bdd8e3cc0a0f8d83cb4aa35f856ed5c7","lineno":5062},"uptodate_status":null},"Expenses:Home:Rent":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-06","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"78d2cefd901c4b31e8a6e4ec39f6209b86e68322387389935fae5854c1e14fdc","lineno":5059},"uptodate_status":null},"Expenses:Taxes:Y2014:US:CityNYC":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"971bc2a0dd7e1f74b21a6ab09ddefe874769a521bc936159731552d313102043","lineno":4977},"uptodate_status":null},"Expenses:Taxes:Y2014:US:Federal":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"610339f8f1d8ba1a2aa8abf3039e9d7949d8c5dee1cc1e5bce82048328cd019c","lineno":4976},"uptodate_status":null},"Expenses:Taxes:Y2014:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-07-17","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"8f40879a650a6bde273968eddf6a21f727b307d637d175e278ec8833412b3fa9","lineno":4974},"uptodate_status":null},"Expenses:Taxes:Y2014:US:Medicare":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"33d1660b43b7064d0495ea0dc2f770dc6f3f8ee09c912856602cf682f4148859","lineno":4975},"uptodate_status":null},"Expenses:Taxes:Y2014:US:SDI":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"f03ada32a9d16fd32f95d02e158fbff6945923f2175d8dd5027052280603b2d6","lineno":4978},"uptodate_status":null},"Expenses:Taxes:Y2014:US:SocSec":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"f5b9147d2b1b0b977b42af653749f942e277254021385cffa2aba012ac10731b","lineno":4980},"uptodate_status":null},"Expenses:Taxes:Y2014:US:State":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"4ec6111472179a6294ce659d9ebcd415d096812bc0e40dbf5a8cf691f5cff0f2","lineno":4979},"uptodate_status":null},"Expenses:Taxes:Y2015:US:CityNYC":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"69317f06186db3003f24fb3aa588c0e8f1baa9de843401ad8e4d51c914445041","lineno":5008},"uptodate_status":null},"Expenses:Taxes:Y2015:US:Federal":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"19f98ae386b144525318742bab193eed544a533eb8d7478bf2415ae8f9c0ef70","lineno":5007},"uptodate_status":null},"Expenses:Taxes:Y2015:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-07-16","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"8a1ea3e8509f40729bc850b900c2f669e0db36c8747a8f737cab58eab638164c","lineno":5005},"uptodate_status":null},"Expenses:Taxes:Y2015:US:Medicare":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"1e568bd4820d9bd18766ea7d9a775a836a30262982af5b13f2412a715825ee69","lineno":5006},"uptodate_status":null},"Expenses:Taxes:Y2015:US:SDI":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"3ee48fe07cf90712a0bd91df5f55a8edd4242adb51bf1237eed3df5142f2298d","lineno":5009},"uptodate_status":null},"Expenses:Taxes:Y2015:US:SocSec":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"6fce68c866bca0dc794719b69ba4a0a0cbe84992054749d825ab9128840f465b","lineno":5011},"uptodate_status":null},"Expenses:Taxes:Y2015:US:State":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"b136e0c263f12bb6b0f7e82f1b36a0be9071d8bee6b07c0aad272a5772233c1a","lineno":5010},"uptodate_status":null},"Expenses:Taxes:Y2016:US:CityNYC":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"989fb07dea0b2665101e2e9d141cda07f15014067d365d82838821b947b9c59c","lineno":5039},"uptodate_status":null},"Expenses:Taxes:Y2016:US:Federal":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"90f9e9c5e8cda3aa4ee4cfd0ed1b715787d59e0b93e70120288e72d185dd50f5","lineno":5038},"uptodate_status":null},"Expenses:Taxes:Y2016:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"a4bb4e087eebd2caebf8f9cb7fac02e97128896e182fff30bacdeeb68f7397e8","lineno":5036},"uptodate_status":null},"Expenses:Taxes:Y2016:US:Medicare":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"4a0718dd044e868169af06081aaff980beb34566cbd4d16f1ed9f91ecc4d7356","lineno":5037},"uptodate_status":null},"Expenses:Taxes:Y2016:US:SDI":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"48c3d846531638b50df3fec5f6577adf295c48963d3df14c627c888fc0a9b2a1","lineno":5040},"uptodate_status":null},"Expenses:Taxes:Y2016:US:SocSec":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"448d037a00ed49c864832dcb21cac56f77137736dc3a364da506370243818526","lineno":5042},"uptodate_status":null},"Expenses:Taxes:Y2016:US:State":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"27594d61562b432847a3cfb210bcd0eeaa6e92a40e36eea7491d7047fed94e08","lineno":5041},"uptodate_status":null},"Expenses:Transport:Tram":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-27","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"7b76c74023b33f93dc4ed35fb53c709ef62b622aa9122d7c53c080c6753aed5a","lineno":5058},"uptodate_status":null},"Expenses:Vacation":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-15","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"6feed371846112b6c7506ee0946310ff2d6d2dd9ae8a1f6fef7023d0479a7523","lineno":3761},"uptodate_status":null},"Income:US:BayBook:GroupTermLife":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"eef1329b1221ffaefb94ba8fed607a1f037aad49ff8195cbfcc985fae49c599f","lineno":3758},"uptodate_status":null},"Income:US:BayBook:Match401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-06","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"578a69f07c90f5c0662ee5ebd01ec43d938285b3c2ba9639fb91d0ba0efeb363","lineno":2969},"uptodate_status":null},"Income:US:BayBook:Salary":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"5cbf403bacb8341ec85ce9936a99e0c4d8b2394408e4fe4a3ce898df2d8bbb4e","lineno":3757},"uptodate_status":null},"Income:US:BayBook:Vacation":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"fc2d9ecd68c68a77f6021ba3ae6dcf51c63123a29d3aa35c6a198a2ffeb8d4c2","lineno":3759},"uptodate_status":null},"Income:US:ETrade:Dividends":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-17","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"d30836e65d1e383db878492e7b35ca8c1d856f2ce493bac5f6be226fa9092784","lineno":2745},"uptodate_status":null},"Income:US:ETrade:Gains":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-01-23","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"6fe09623d9e16d42c49134ceeedd69df57b8530d9a2745b51108ace5efdd9f62","lineno":2744},"uptodate_status":null},"Income:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-01-01","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"633521a878d595f08d2b021105ae0bf679e87ff5aaa9b1044678f9a2ce6d57b0","lineno":4967},"uptodate_status":null},"Liabilities:AccountsPayable":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-26","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"7ef35bce8662eb3d3b81cbaa5232c1a3d0dd81fdd6a96b346f248440c5085f43","lineno":72},"uptodate_status":null},"Liabilities:US:Chase:Slate":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-19","entry_hash":"ENTRY_HASH"},"meta":{"fava-uptodate-indication":true,"filename":"TEST_DATA_DIR/long-example.beancount","hash":"7b13a5d5089ff6568fa3a0fa215d61eaef2418356765a624c63dfd9b39a79da1","lineno":755},"uptodate_status":"green"}},"accounts":["Liabilities:US:Chase:Slate","Expenses:Food:Restaurant","Assets:US:BofA:Checking","Assets:US:Vanguard:Cash","Assets:US:Vanguard:RGAGX","Assets:US:Vanguard:VBMPX","Assets:US:BayBook:Vacation","Assets:US:Federal:PreTax401k","Expenses:Health:Dental:Insurance","Expenses:Health:Life:GroupTermLife","Expenses:Health:Medical:Insurance","Expenses:Health:Vision:Insurance","Income:US:BayBook:GroupTermLife","Income:US:BayBook:Salary","Income:US:BayBook:Vacation","Assets:US:ETrade:Cash","Expenses:Food:Groceries","Expenses:Financial:Commissions","Income:US:BayBook:Match401k","Expenses:Taxes:Y2015:US:Federal","Expenses:Taxes:Y2015:US:State","Expenses:Taxes:Y2015:US:CityNYC","Expenses:Taxes:Y2015:US:Medicare","Expenses:Taxes:Y2015:US:SDI","Expenses:Taxes:Y2015:US:SocSec","Expenses:Financial:Fees","Expenses:Home:Internet","Expenses:Home:Phone","Expenses:Home:Electricity","Expenses:Home:Rent","Expenses:Transport:Tram","Expenses:Food:Coffee","Expenses:Taxes:Y2016:US:CityNYC","Expenses:Taxes:Y2016:US:Federal","Expenses:Taxes:Y2016:US:Federal:PreTax401k","Expenses:Taxes:Y2016:US:Medicare","Expenses:Taxes:Y2016:US:SDI","Expenses:Taxes:Y2016:US:SocSec","Expenses:Taxes:Y2016:US:State","Expenses:Taxes:Y2014:US:Federal","Expenses:Taxes:Y2014:US:State","Expenses:Taxes:Y2014:US:CityNYC","Expenses:Taxes:Y2014:US:Medicare","Expenses:Taxes:Y2014:US:SDI","Expenses:Taxes:Y2014:US:SocSec","Expenses:Taxes:Y2015:US:Federal:PreTax401k","Assets:US:ETrade:GLD","Assets:US:ETrade:VEA","Income:US:ETrade:Gains","Liabilities:AccountsPayable","Assets:US:ETrade:VHT","Assets:US:ETrade:ITOT","Income:US:ETrade:Dividends","Expenses:Taxes:Y2014:US:Federal:PreTax401k","Expenses:Vacation","Income:US:Federal:PreTax401k","Expenses:Food:Alcohol","Equity:Opening-Balances","Assets:Testing:MultipleCommodities","Assets:US:BofA","Assets:US:Vanguard"],"base_url":"/long-example/","currencies":["USD","VACHR","IRAUSD","VBMPX","RGAGX","GLD","VEA","VHT","ITOT","ABC","XYZ"],"currency_names":{"GLD":"SPDR Gold Trust (ETF)","IRAUSD":"US 401k and IRA Contributions","ITOT":"iShares Core S&P Total U.S. Stock Market ETF","RGAGX":"American Funds The Growth Fund of America Class R-6","USD":"US Dollar","VACHR":"Employer Vacation Hours","VBMPX":"Vanguard Total Bond Market Index Fund Institutional Plus Shares","VEA":"Vanguard FTSE Developed Markets ETF","VHT":"Vanguard Health Care ETF"},"errors":[],"extensions":[],"fava_options":{"account_journal_include_children":true,"auto_reload":false,"collapse_pattern":[],"conversion_currencies":[],"currency_column":61,"default_file":null,"default_page":"income_statement/","fiscal_year_end":{"day":31,"month":12},"import_config":null,"import_dirs":[],"indent":2,"insert_entry":[],"invert_gains_losses_colors":false,"invert_income_liabilities_equity":false,"language":null,"locale":null,"show_accounts_with_zero_balance":false,"show_accounts_with_zero_transactions":true,"show_closed_accounts":false,"sidebar_show_queries":5,"unrealized":"Unrealized","upcoming_events":7,"uptodate_indicator_grey_lookback_days":60,"use_external_editor":false},"have_excel":true,"incognito":false,"links":["test-link"],"options":{"documents":[],"filename":"TEST_DATA_DIR/long-example.beancount","include":["TEST_DATA_DIR/long-example.beancount"],"name_assets":"Assets","name_equity":"Equity","name_expenses":"Expenses","name_income":"Income","name_liabilities":"Liabilities","operating_currency":["USD"],"title":"Long Example"},"other_ledgers":[["Edit Example","/edit-example/"],["Example","/example/"],["Extension Report","/extension-report/"],["import","/import/"],["Query Example","/query-example/"],["errors","/errors/"],["off-by-one","/off-by-one/"],["invalid-unicode","/invalid-unicode/"]],"payees":["BayBook","Rose Flower","Uncle Boons","Goba Goba","China Garden","Chichipotle","Kin Soy","BANK FEES","Jewel of Morroco","Wine-Tarner Cable","Verizon Wireless","Cafe Modagor","Chase:Slate","EDISON POWER","RiverBank Properties","Metro Transport Authority","Corner Deli","Onion Market","Laut","Good Moods Market","Pizza Delfina","Cafe Select","Waterbar","Gimme! Coffee","Starbucks","Mission Chinese Food","Farmer Fresh","Bar Crudo","La Colombe","Mercadito","Eataly Chicago","Takahachi","Star of Siam","Argo Tea","Another Sports Pub","25 Degrees Burger Bar","\u00c1rv\u00edzt\u0171r\u0151 t\u00fck\u00f6rf\u00far\u00f3g\u00e9p"],"precisions":{"ABC":0,"GLD":0,"IRAUSD":2,"ITOT":0,"RGAGX":3,"USD":2,"VACHR":0,"VBMPX":3,"VEA":0,"VHT":0,"VMMXX":4,"XYZ":0},"sidebar_links":[],"tags":["test","trip-chicago-2015","trip-new-york-2016","trip-san-francisco-2015"],"upcoming_events_count":0,"user_queries":[{"date":"2016-01-01","meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"aabc8862430abfbea1f8b2a41922a2d29d889fc3dcf00865801e8fe34db02fa1","lineno":11},"name":"fava","query_string":"journal"}],"years":["2016","2015","2014","2009","2007","2004","2000","1995","1980","1900","1792"]} \ No newline at end of file +{"account_details":{"Assets:Testing:MultipleCommodities":{"balance_string":null,"close_date":null,"last_entry":{"date":"2000-01-03","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5809},"uptodate_status":null},"Assets:US:BayBook:Vacation":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3760},"uptodate_status":null},"Assets:US:BofA":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-01-01","entry_hash":"ENTRY_HASH"},"meta":{"address":"123 America Street, LargeTown, USA","filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","institution":"Bank of America","lineno":78,"phone":"+1.012.345.6789"},"uptodate_status":null},"Assets:US:BofA:Checking":{"balance_string":"TODAY balance Assets:US:BofA:Checking 1632.79 USD\n","close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"account":"00234-48574897","fava-uptodate-indication":true,"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":82},"uptodate_status":"yellow"},"Assets:US:ETrade:Cash":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2739},"uptodate_status":null},"Assets:US:ETrade:GLD":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2743},"uptodate_status":null},"Assets:US:ETrade:ITOT":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-11-23","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2740},"uptodate_status":null},"Assets:US:ETrade:VEA":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2741},"uptodate_status":null},"Assets:US:ETrade:VHT":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-20","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2742},"uptodate_status":null},"Assets:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4968},"uptodate_status":null},"Assets:US:Vanguard":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-01-01","entry_hash":"ENTRY_HASH"},"meta":{"address":"P.O. Box 1110, Valley Forge, PA 19482-1110","filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","institution":"Vanguard Group","lineno":2965,"phone":"+1.800.523.1188"},"uptodate_status":null},"Assets:US:Vanguard:Cash":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2970,"number":"882882"},"uptodate_status":null},"Assets:US:Vanguard:RGAGX":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2963,"number":"882882"},"uptodate_status":null},"Assets:US:Vanguard:VBMPX":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2961,"number":"882882"},"uptodate_status":null},"Equity:Opening-Balances":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-01-01","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":71},"uptodate_status":null},"Expenses:Financial:Commissions":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-30","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5064},"uptodate_status":null},"Expenses:Financial:Fees":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-04","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5063},"uptodate_status":null},"Expenses:Food:Alcohol":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-02-01","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5057},"uptodate_status":null},"Expenses:Food:Coffee":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-14","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5056},"uptodate_status":null},"Expenses:Food:Groceries":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-21","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5054},"uptodate_status":null},"Expenses:Food:Restaurant":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-07","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5055},"uptodate_status":null},"Expenses:Health:Dental:Insurance":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3764},"uptodate_status":null},"Expenses:Health:Life:GroupTermLife":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3762},"uptodate_status":null},"Expenses:Health:Medical:Insurance":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3763},"uptodate_status":null},"Expenses:Health:Vision:Insurance":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3765},"uptodate_status":null},"Expenses:Home:Electricity":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-09","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5060},"uptodate_status":null},"Expenses:Home:Internet":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-21","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5061},"uptodate_status":null},"Expenses:Home:Phone":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-20","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5062},"uptodate_status":null},"Expenses:Home:Rent":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-06","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5059},"uptodate_status":null},"Expenses:Taxes:Y2014:US:CityNYC":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4977},"uptodate_status":null},"Expenses:Taxes:Y2014:US:Federal":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4976},"uptodate_status":null},"Expenses:Taxes:Y2014:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-07-17","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4974},"uptodate_status":null},"Expenses:Taxes:Y2014:US:Medicare":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4975},"uptodate_status":null},"Expenses:Taxes:Y2014:US:SDI":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4978},"uptodate_status":null},"Expenses:Taxes:Y2014:US:SocSec":{"balance_string":null,"close_date":null,"last_entry":{"date":"2014-12-18","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4980},"uptodate_status":null},"Expenses:Taxes:Y2014:US:State":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4979},"uptodate_status":null},"Expenses:Taxes:Y2015:US:CityNYC":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5008},"uptodate_status":null},"Expenses:Taxes:Y2015:US:Federal":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5007},"uptodate_status":null},"Expenses:Taxes:Y2015:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-07-16","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5005},"uptodate_status":null},"Expenses:Taxes:Y2015:US:Medicare":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5006},"uptodate_status":null},"Expenses:Taxes:Y2015:US:SDI":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5009},"uptodate_status":null},"Expenses:Taxes:Y2015:US:SocSec":{"balance_string":null,"close_date":null,"last_entry":{"date":"2015-12-31","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5011},"uptodate_status":null},"Expenses:Taxes:Y2015:US:State":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-22","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5010},"uptodate_status":null},"Expenses:Taxes:Y2016:US:CityNYC":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5039},"uptodate_status":null},"Expenses:Taxes:Y2016:US:Federal":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5038},"uptodate_status":null},"Expenses:Taxes:Y2016:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5036},"uptodate_status":null},"Expenses:Taxes:Y2016:US:Medicare":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5037},"uptodate_status":null},"Expenses:Taxes:Y2016:US:SDI":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5040},"uptodate_status":null},"Expenses:Taxes:Y2016:US:SocSec":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5042},"uptodate_status":null},"Expenses:Taxes:Y2016:US:State":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5041},"uptodate_status":null},"Expenses:Transport:Tram":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-27","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":5058},"uptodate_status":null},"Expenses:Vacation":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-04-15","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3761},"uptodate_status":null},"Income:US:BayBook:GroupTermLife":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3758},"uptodate_status":null},"Income:US:BayBook:Match401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-06","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2969},"uptodate_status":null},"Income:US:BayBook:Salary":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3757},"uptodate_status":null},"Income:US:BayBook:Vacation":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-05","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":3759},"uptodate_status":null},"Income:US:ETrade:Dividends":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-17","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2745},"uptodate_status":null},"Income:US:ETrade:Gains":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-01-23","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":2744},"uptodate_status":null},"Income:US:Federal:PreTax401k":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-01-01","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":4967},"uptodate_status":null},"Liabilities:AccountsPayable":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-03-26","entry_hash":"ENTRY_HASH"},"meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":72},"uptodate_status":null},"Liabilities:US:Chase:Slate":{"balance_string":null,"close_date":null,"last_entry":{"date":"2016-05-19","entry_hash":"ENTRY_HASH"},"meta":{"fava-uptodate-indication":true,"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":755},"uptodate_status":"green"}},"accounts":["Liabilities:US:Chase:Slate","Expenses:Food:Restaurant","Assets:US:BofA:Checking","Assets:US:Vanguard:Cash","Assets:US:Vanguard:RGAGX","Assets:US:Vanguard:VBMPX","Assets:US:BayBook:Vacation","Assets:US:Federal:PreTax401k","Expenses:Health:Dental:Insurance","Expenses:Health:Life:GroupTermLife","Expenses:Health:Medical:Insurance","Expenses:Health:Vision:Insurance","Income:US:BayBook:GroupTermLife","Income:US:BayBook:Salary","Income:US:BayBook:Vacation","Assets:US:ETrade:Cash","Expenses:Food:Groceries","Expenses:Financial:Commissions","Income:US:BayBook:Match401k","Expenses:Taxes:Y2015:US:Federal","Expenses:Taxes:Y2015:US:State","Expenses:Taxes:Y2015:US:CityNYC","Expenses:Taxes:Y2015:US:Medicare","Expenses:Taxes:Y2015:US:SDI","Expenses:Taxes:Y2015:US:SocSec","Expenses:Financial:Fees","Expenses:Home:Internet","Expenses:Home:Phone","Expenses:Home:Electricity","Expenses:Home:Rent","Expenses:Transport:Tram","Expenses:Food:Coffee","Expenses:Taxes:Y2016:US:CityNYC","Expenses:Taxes:Y2016:US:Federal","Expenses:Taxes:Y2016:US:Federal:PreTax401k","Expenses:Taxes:Y2016:US:Medicare","Expenses:Taxes:Y2016:US:SDI","Expenses:Taxes:Y2016:US:SocSec","Expenses:Taxes:Y2016:US:State","Expenses:Taxes:Y2014:US:Federal","Expenses:Taxes:Y2014:US:State","Expenses:Taxes:Y2014:US:CityNYC","Expenses:Taxes:Y2014:US:Medicare","Expenses:Taxes:Y2014:US:SDI","Expenses:Taxes:Y2014:US:SocSec","Expenses:Taxes:Y2015:US:Federal:PreTax401k","Assets:US:ETrade:GLD","Assets:US:ETrade:VEA","Income:US:ETrade:Gains","Liabilities:AccountsPayable","Assets:US:ETrade:VHT","Assets:US:ETrade:ITOT","Income:US:ETrade:Dividends","Expenses:Taxes:Y2014:US:Federal:PreTax401k","Expenses:Vacation","Income:US:Federal:PreTax401k","Expenses:Food:Alcohol","Equity:Opening-Balances","Assets:Testing:MultipleCommodities","Assets:US:BofA","Assets:US:Vanguard"],"base_url":"/long-example/","currencies":["USD","VACHR","IRAUSD","VBMPX","RGAGX","GLD","VEA","VHT","ITOT","ABC","XYZ"],"currency_names":{"GLD":"SPDR Gold Trust (ETF)","IRAUSD":"US 401k and IRA Contributions","ITOT":"iShares Core S&P Total U.S. Stock Market ETF","RGAGX":"American Funds The Growth Fund of America Class R-6","USD":"US Dollar","VACHR":"Employer Vacation Hours","VBMPX":"Vanguard Total Bond Market Index Fund Institutional Plus Shares","VEA":"Vanguard FTSE Developed Markets ETF","VHT":"Vanguard Health Care ETF"},"errors":[],"extensions":[],"fava_options":{"account_journal_include_children":true,"auto_reload":false,"collapse_pattern":[],"conversion_currencies":[],"currency_column":61,"default_file":null,"default_page":"income_statement/","fiscal_year_end":{"day":31,"month":12},"import_config":null,"import_dirs":[],"indent":2,"insert_entry":[],"invert_gains_losses_colors":false,"invert_income_liabilities_equity":false,"language":null,"locale":null,"show_accounts_with_zero_balance":false,"show_accounts_with_zero_transactions":true,"show_closed_accounts":false,"sidebar_show_queries":5,"unrealized":"Unrealized","upcoming_events":7,"uptodate_indicator_grey_lookback_days":60,"use_external_editor":false},"have_excel":true,"incognito":false,"links":["test-link"],"options":{"documents":[],"filename":"TEST_DATA_DIR/long-example.beancount","include":["TEST_DATA_DIR/long-example.beancount"],"name_assets":"Assets","name_equity":"Equity","name_expenses":"Expenses","name_income":"Income","name_liabilities":"Liabilities","operating_currency":["USD"],"title":"Long Example"},"other_ledgers":[["Edit Example","/edit-example/"],["Example","/example/"],["Extension Report","/extension-report/"],["import","/import/"],["Query Example","/query-example/"],["errors","/errors/"],["off-by-one","/off-by-one/"],["invalid-unicode","/invalid-unicode/"]],"payees":["BayBook","Rose Flower","Uncle Boons","Goba Goba","China Garden","Chichipotle","Kin Soy","BANK FEES","Jewel of Morroco","Wine-Tarner Cable","Verizon Wireless","Cafe Modagor","Chase:Slate","EDISON POWER","RiverBank Properties","Metro Transport Authority","Corner Deli","Onion Market","Laut","Good Moods Market","Pizza Delfina","Cafe Select","Waterbar","Gimme! Coffee","Starbucks","Mission Chinese Food","Farmer Fresh","Bar Crudo","La Colombe","Mercadito","Eataly Chicago","Takahachi","Star of Siam","Argo Tea","Another Sports Pub","25 Degrees Burger Bar","\u00c1rv\u00edzt\u0171r\u0151 t\u00fck\u00f6rf\u00far\u00f3g\u00e9p"],"precisions":{"ABC":0,"GLD":0,"IRAUSD":2,"ITOT":0,"RGAGX":3,"USD":2,"VACHR":0,"VBMPX":3,"VEA":0,"VHT":0,"VMMXX":4,"XYZ":0},"sidebar_links":[],"tags":["test","trip-chicago-2015","trip-new-york-2016","trip-san-francisco-2015"],"upcoming_events_count":0,"user_queries":[{"date":"2016-01-01","meta":{"filename":"TEST_DATA_DIR/long-example.beancount","hash":"META_HASH","lineno":11},"name":"fava","query_string":"journal"}],"years":["2016","2015","2014","2009","2007","2004","2000","1995","1980","1900","1792"]} \ No newline at end of file diff --git a/tests/conftest.py b/tests/conftest.py index c4bebe131..e85305899 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -194,6 +194,20 @@ def snapshot_data( # from rustledger) out = re.sub(r'_hash": ?"[0-9a-f]+', '_hash":"ENTRY_HASH', out) out = re.sub(r'_hash": ?"-?[0-9]+', '_hash":"ENTRY_HASH', out) + # replace the `hash` metadata key rustledger attaches to every + # directive. The `_hash":` patterns above deliberately require the + # underscore, so they match `entry_hash` and miss this one — which + # left 62 literal digests pinned in + # test_internal_api-test_get_ledger_data.json. Those digests are + # rustledger's directive-identity hash: an implementation detail of a + # separate repo, tested by its own suite, and nothing about rustfava's + # behaviour is asserted by their exact values. Pinning them meant any + # change to the hash function turned this suite red and forced a + # lockstep snapshot regeneration (rustledger#1984). Anchored on the + # opening quote so `entry_hash` is untouched, and on a full-length + # digest so user metadata that happens to be called `hash` is not + # silently swallowed. + out = re.sub(r'"hash": ?"[0-9a-f]{64}"', '"hash":"META_HASH"', out) out = re.sub(r"context-[0-9a-f]+", "context-ENTRY_HASH", out) out = re.sub(r"context--?[0-9]+", "context-ENTRY_HASH", out) out = re.sub(r"data-entry='[0-9a-f]+", "data-entry='ENTRY_HASH", out)