Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add importer for Digital Credit Union #89

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

hlieberman
Copy link
Contributor

This adds a CSV importer for Digital Federal Credit Union (DCU), the 18th largest credit union in the United States (by total assets under management). Unfortunately, DCU doesn't offer OFX exports, so this is the best we can do.

@redstreet
Copy link
Owner

Nice, thanks! For csv importers, it's far more important to have unit tests (compared to ofx), so would you mind adding at least a couple lines? It's simple: beancount_reds_importers/importers/schwab/tests/schwab_csv_checking is a good example.

@hlieberman
Copy link
Contributor Author

Yeah, no problem. Would you mind if I pulled in another dependency, at least as dev dep? (I try, whenever possible, to add hypothesis tests if I'm going to write unit tests -- in addition to a static test.)

@redstreet
Copy link
Owner

Sure, dev dependencies are fine.

@hlieberman
Copy link
Contributor Author

hlieberman commented Dec 22, 2023

@redstreet, I ended up not using hypothesis after all. I wrote up a test, but it really is testing beancount more than it's testing the importer, since it's making sure a series of random transactions that balance before import, balance after import. Juice isn't really worth the squeeze.

@redstreet
Copy link
Owner

Makes sense, and sounds good. If you don't mind addressing the comment above about 'USD', I can merge this in.

@hlieberman
Copy link
Contributor Author

the comment above about 'USD'

I'm sorry, I must be blind; I don't see anything about USD above. The only comment I see on the code is the ofx => csv one.

@redstreet
Copy link
Owner

I'm sorry, I must be blind; I don't see anything about USD above. The only comment I see on the code is the ofx => csv one.

Drat, completely my bad, sorry! Github requires separately hitting a "submit review" as a second step when adding a comment as a part of a review (as opposed to adding a freestanding comment). This is non-obvious and not at all the first time I've been tripped up by it. It should be visible now.

This adds a CSV importer for Digital Federal Credit Union (DCU), the 18th
largest credit union in the United States (by total assets under management).
Unfortunately, DCU doesn't offer OFX exports, so this is the best we can do.
@hlieberman
Copy link
Contributor Author

hlieberman commented Dec 22, 2023

Drat, completely my bad, sorry! Github requires separately hitting a "submit review" as a second step when adding a comment as a part of a review (as opposed to adding a freestanding comment).

Ah yes, I've been bitten by this one myself a couple of times. Change made!

@redstreet
Copy link
Owner

Awesome, thank you!

@redstreet redstreet merged commit 87a5f4b into redstreet:main Dec 22, 2023
3 checks passed
@redstreet
Copy link
Owner

redstreet commented Dec 22, 2023

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants