-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a unit test for the Vanguard_529 importer
- Loading branch information
1 parent
94b3ef2
commit 0986ff8
Showing
13 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
beancount_reds_importers/importers/vanguard/tests/vanguard_529/ofxdownload_09102023.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Fund Account Number,Fund Name,Price,Shares,Total Value | ||
535672845-01,Vanguard Target Enrollment 2040/2041 Portfolio,$9.45,348.5265,$3293.58 | ||
|
||
Account Number,Trade Date,Process Date,Transaction Type,Transaction Description,Investment Name,Share Price,Shares,Gross Amount,Net Amount | ||
535672845-01,06/30/2023,06/30/2023,Contribution AIP,Contribution AIP,Vanguard Target Enrollment 2040/2041 Portfolio,$9.51,26.2881,$250,$250 | ||
535672845-01,05/31/2023,05/31/2023,Contribution AIP,Contribution AIP,Vanguard Target Enrollment 2040/2041 Portfolio,$9.01,27.7469,$250,$250 | ||
535672845-01,04/28/2023,04/28/2023,Contribution AIP,Contribution AIP,Vanguard Target Enrollment 2040/2041 Portfolio,$9.11,27.4424,$250,$250 | ||
535672845-01,03/31/2023,03/31/2023,Contribution AIP,Contribution AIP,Vanguard Target Enrollment 2040/2041 Portfolio,$9,27.7778,$250,$250 | ||
535672845-01,02/28/2023,02/28/2023,Contribution AIP,Contribution AIP,Vanguard Target Enrollment 2040/2041 Portfolio,$8.76,28.5388,$250,$250 | ||
535672845-01,02/17/2023,02/17/2023,Contribution EBT,Contribution EBT,Vanguard Target Enrollment 2040/2041 Portfolio,$8.99,22.2469,$200,$200 | ||
535672845-01,01/31/2023,01/31/2023,Contribution AIP,Contribution AIP,Vanguard Target Enrollment 2040/2041 Portfolio,$9.03,27.6855,$250,$250 | ||
535672845-01,01/03/2023,01/03/2023,Contribution AIP,Contribution AIP,Vanguard Target Enrollment 2040/2041 Portfolio,$8.42,29.6912,$250,$250 |
36 changes: 36 additions & 0 deletions
36
...unt_reds_importers/importers/vanguard/tests/vanguard_529/ofxdownload_09102023.csv.extract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
2023-01-03 * "Contribution AIP" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 29.6912 VTE2040 {8.42 USD} | ||
Assets:Vanguard:529:Cash -250.00 USD | ||
|
||
2023-01-31 * "Contribution AIP" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 27.6855 VTE2040 {9.03 USD} | ||
Assets:Vanguard:529:Cash -250.00 USD | ||
|
||
2023-02-17 * "Contribution EBT" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 22.2469 VTE2040 {8.99 USD} | ||
Assets:Vanguard:529:Cash -200.00 USD | ||
|
||
2023-02-28 * "Contribution AIP" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 28.5388 VTE2040 {8.76 USD} | ||
Assets:Vanguard:529:Cash -250.00 USD | ||
|
||
2023-03-31 * "Contribution AIP" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 27.7778 VTE2040 {9.00 USD} | ||
Assets:Vanguard:529:Cash -250.00 USD | ||
|
||
2023-04-28 * "Contribution AIP" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 27.4424 VTE2040 {9.11 USD} | ||
Assets:Vanguard:529:Cash -250.00 USD | ||
|
||
2023-05-31 * "Contribution AIP" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 27.7469 VTE2040 {9.01 USD} | ||
Assets:Vanguard:529:Cash -250.00 USD | ||
|
||
2023-06-30 * "Contribution AIP" "[VTE2040] Vanguard Target Enrollment 2040/2041 Portfolio" | ||
Assets:Vanguard:529:VTE2040 26.2881 VTE2040 {9.51 USD} | ||
Assets:Vanguard:529:Cash -250.00 USD | ||
|
||
2023-06-30 price VTE2040 9.45 USD | ||
|
||
2023-07-01 balance Assets:Vanguard:529:VTE2040 348.5265 VTE2040 |
1 change: 1 addition & 0 deletions
1
...eds_importers/importers/vanguard/tests/vanguard_529/ofxdownload_09102023.csv.file_account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Assets:Vanguard:529 |
1 change: 1 addition & 0 deletions
1
...t_reds_importers/importers/vanguard/tests/vanguard_529/ofxdownload_09102023.csv.file_date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2023-09-10 |
1 change: 1 addition & 0 deletions
1
...t_reds_importers/importers/vanguard/tests/vanguard_529/ofxdownload_09102023.csv.file_name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ofxdownload_09102023.csv |
32 changes: 32 additions & 0 deletions
32
beancount_reds_importers/importers/vanguard/tests/vanguard_529/vanguard_529_test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from os import path | ||
from beancount.ingest import regression_pytest as regtest | ||
from beancount_reds_importers.importers.vanguard import vanguard_529 | ||
|
||
|
||
@regtest.with_importer( | ||
vanguard_529.Importer( | ||
{ | ||
"account_number": "535672845-01", | ||
"main_account": "Assets:Vanguard:529:{ticker}", | ||
"cash_account": "Assets:Vanguard:529:Cash", | ||
"dividends": "Income:Dividends:Vanguard:529:{ticker}", | ||
"interest": "Income:Interest:Vanguard:529:{ticker}", | ||
"cg": "Income:CapitalGains:529:{ticker}", | ||
"capgainsd_lt": "Income:CapitalGains:Long:Vanguard:529:{ticker}", | ||
"capgainsd_st": "Income:CapitalGains:Short:Vanguard:529:{ticker}", | ||
"fees": "Expenses:Fees:Vanguard:529", | ||
"invexpense": "Expenses:Expenses:Vanguard:529", | ||
"rounding_error": "Equity:Rounding-Errors:Imports", | ||
"fund_info": { | ||
"fund_data": [ | ||
('VTE2040', '00000000', 'Vanguard Target Enrollment 2040/2041 Portfolio'), | ||
], | ||
"money_market": [], | ||
}, | ||
"currency" : 'USD', | ||
} | ||
) | ||
) | ||
@regtest.with_testdir(path.dirname(__file__)) | ||
class TestVanguard529(regtest.ImporterTestBase): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters