Commit Graph
49 Commits
Author SHA1 Message Date
mathias2784 553e1a4c83 Refactor domain_utils.py overlap helpers, add ONE_DAY constant, remove inflated comments, and standardize _add_row() calls
Tests / test (push) Successful in 11s
Tests / lint (push) Failing after 7s
2026-10-16 22:30:36 +02:00
mathias2784 98a5e9332f some fixes
Tests / test (push) Successful in 16s
Tests / lint (push) Failing after 12s
2026-10-16 22:15:19 +02:00
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 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 551d8ffbde flexible encoding when reading comdirect data 2026-09-13 22:06:20 +02:00
mathias2784 75a787aece comdirect ingest tests (tbc) 2026-09-13 20:46:40 +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 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 500b76b8a8 fix b4w real-world import 2026-09-12 21:00:26 +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
mathias2784 897cb63401 cli data ingest 2026-09-04 23:36:47 +02:00
mathias2784 153820772a test db setup 2026-09-04 15:34:02 +02:00
mathias2784 f076d2e841 db engine 2026-09-04 14:41:29 +02:00
mathias2784 99d6c1bde2 db helper for ingesting b4w data 2026-09-04 14:21:19 +02:00
mathias2784 bafdcda29d typo 2026-09-02 23:13:29 +02:00
mathias2784 14f3b89b99 added filed book_date 2026-09-02 23:12:01 +02:00
mathias2784 c23c87d5f6 sign field instead of amount_type 2026-09-02 23:07:41 +02:00
mathias2784 afadfb0475 more and better models 2026-09-02 22:55:48 +02:00
mathias2784 0d4e1192b9 initial commit 2026-09-02 20:20:48 +02:00