Commit Graph
63 Commits
Author SHA1 Message Date
mathias2784 2c7f8f4a67 Add tests for category budgets and new functionality
Tests / test (push) Successful in 10s
Tests / lint (push) Failing after 7s
New test files added:
- test_category_edge_cases.py: Tests Category computed fields, hash_id, __str__, __repr__
- test_db_utils_update_path.py: Tests for updated upsert() path handling
- test_models_common.py: Tests Sign enum, date2str, ExportBaseModel methods
- test_models_init.py: Tests for lazy loading from models.__init__.py

Code changes:
- Fixed CategoryBudget to have default=None for optional valid_from/valid_to fields
- Updated src/models/__init__.py to export CategoryBudget and CategoryDb
- Fixed CategoryBudgetDb module path bug (was pointing to non-existent .category_budget)
- Improved db_utils.upsert() to handle partial overlaps correctly

Coverage improvements:
- New functionality coverage: 100%
- Overall codebase coverage: 86% (up from 83%)

Notes:
- Some existing domain_utils.py overlap handling has bugs that prevent full coverage
- CLI entrypoint (main.py) and some enum methods remain uncovered but are optional
2026-10-16 21:53:38 +02:00
mathias2784 dc98ea910f utility functions for category
Tests / test (push) Successful in 16s
Tests / lint (push) Successful in 17s
2026-10-16 21:12:57 +02:00
mathias2784 da0a78d2d0 yet another refactor 2026-10-16 16:47:08 +02:00
mathias2784 5cea645062 Some more refactoring
Tests / test (push) Successful in 10s
Tests / lint (push) Successful in 11s
2026-10-16 16:27:50 +02:00
mathias2784 ef1a65adeb some refactoring 2026-10-16 15:27:41 +02:00
mathias2784 696823406e Extract Category model into src/models/category.py
Tests / test (push) Successful in 10s
Tests / lint (push) Successful in 11s
2026-10-16 12:29:11 +02:00
mathias2784 c7e4b68dfb Fix comdirect CSV reader for neu group header rows 2026-10-16 12:28:57 +02:00
mathias2784 435f7b92bf Add category_budget satellite table for time-bounded per-category budgets
Tests / test (push) Successful in 10s
Tests / lint (push) Successful in 12s
2026-10-16 11:45:13 +02:00
mathias2784 4efef98c9c Test db ppopulate (#19)
Tests / test (push) Successful in 10s
Tests / lint (push) Successful in 10s
Reviewed-on: #19
Co-authored-by: Mathias <mathias2784@web.de>
2026-10-16 06:51:57 +00:00
mathias2784 6d98939024 Transactions table (#7)
Tests / test (push) Successful in 10s
Tests / lint (push) Successful in 10s
Reviewed-on: #7
Co-authored-by: Mathias <mathias2784@web.de>
2026-10-10 20:47:51 +00:00
mathias2784 fdc66037ce Merge pull request 'Ingest comdirect' (#5) from ingest-comdirect into master
Tests / test (push) Successful in 8s
Tests / lint (push) Successful in 7s
Reviewed-on: #5
2026-09-13 20:27:15 +00:00
mathias2784 61cb7cb591 pipeline: some more checks
Tests / test (push) Successful in 9s
Tests / lint (push) Successful in 6s
2026-09-13 22:20:20 +02:00
mathias2784 3245b25e9d pipeline: copy default settings
Tests / test (push) Successful in 9s
2026-09-13 22:11:36 +02:00
mathias2784 a482f38cb6 black
Tests / test (push) Failing after 7s
2026-09-13 22:06:28 +02:00
mathias2784 551d8ffbde flexible encoding when reading comdirect data 2026-09-13 22:06:20 +02:00
mathias2784 4046c00b1b pipeline fix dependencies
Tests / test (push) Failing after 16s
2026-09-13 21:56:05 +02:00
mathias2784 c4bc8d427f pipeline
Tests / test (push) Failing after 37s
2026-09-13 21:18:46 +02:00
mathias2784 75a787aece comdirect ingest tests (tbc) 2026-09-13 20:46:40 +02:00
mathias2784 c11c168134 pipeline 2026-09-13 13:16:28 +02:00
mathias2784 8440dd2ea7 b4w ingest e2e test 2026-09-13 12:57:05 +02:00
mathias2784 ef07fa5a2e comdirect complete dummy generation 2026-09-13 12:11:41 +02:00
mathias2784 61d7eb54a3 scripts/dummy_data/generate_dummies_b4w.py 2026-09-13 10:03:28 +02:00
mathias2784 afe2478cc7 comdirect stringification 2026-09-13 09:45:16 +02:00
mathias2784 46bdd5e68c ingestion models: less code repetition, more inheritance 2026-09-13 07:55:24 +02:00
mathias2784 58dc585e7e b4w faker: occasionally empty other_iban 2026-09-13 07:31:20 +02:00
mathias2784 7ab7276db5 AGENTS.md 2026-09-12 22:58:22 +02:00
mathias2784 500b76b8a8 fix b4w real-world import 2026-09-12 21:00:26 +02:00
mathias2784 e9dcb88da5 fix settings template 2026-09-12 21:00:00 +02:00
mathias2784 75fd76b0d9 comdirect faker 2026-09-12 20:07:08 +02:00
mathias2784 821fa1bd97 b4w dummy data improved 2026-09-12 18:10:34 +02:00
mathias2784 72c2ee00cd moved scripts 2026-09-12 14:45:23 +02:00
mathias2784 cc7ba35c4d b4w dummy data 2026-09-12 14:40:55 +02:00
mathias2784 a0a4d6e8d9 feat(b4w): add human-readable B4wExport repr/str output; fix comdirect account lookup and export formatting helpers 2026-09-12 14:26:42 +02:00
mathias2784 c354523ae9 comdirect ingest: overhaul 2026-09-12 10:13:59 +02:00
mathias2784 69c13f93ac heavy refactor 2026-09-11 14:40:38 +02:00
mathias2784 f815ff2c0a first Durchstich: comdirect Giro to DB 2026-09-11 11:36:25 +02:00
mathias2784 0ca784fd80 black 2026-09-11 10:17:35 +02:00
mathias2784 d502e9ef0d comdirect ingest: some code structurerefinement 2026-09-11 10:16:51 +02:00
mathias2784 f50b28a387 comdirect ingest: simpler classes 2026-09-11 08:59:55 +02:00
mathias2784 b93fd35f43 comdirect ingest: proper models 2026-09-10 23:10:14 +02:00
mathias2784 603be8db38 ingest comdirect as raw strings 2026-09-10 21:55:29 +02:00
mathias2784 af4becaee9 comdirect reader: flatten results 2026-09-10 15:47:32 +02:00
Mathias Schneider bbe70692dd comdirect reader tweak: rollback 2026-09-07 10:17:32 +02:00
Mathias Schneider 97c7f36735 comdirect reader tweak 2026-09-07 09:52:28 +02:00
mathias2784 dc68c79d93 reader_comdirect (tbc) 2026-09-06 23:21:18 +02:00
mathias2784 edb5a75bf7 b4w export: some more tests 2026-09-06 13:59:17 +02:00
mathias2784 d2d7c7fa74 black 2026-09-06 12:26:53 +02:00
mathias2784 bbe1406afb ruff 2026-09-06 12:25:37 +02:00
mathias2784 d1c22470bb b4w data factories and tests 2026-09-06 12:23:03 +02:00
mathias2784 e8a8844b10 factories init (tbc) 2026-09-05 11:28:29 +02:00