Add category-list factory and seed categories in B4W smoke test
Tests / test (push) Successful in 23s
Tests / lint (push) Failing after 15s

This commit is contained in:
2026-10-18 09:28:19 +02:00
parent c0adc77f56
commit ea7854473f
7 changed files with 80 additions and 30 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ from src.ingest.transactions import (
from src.models.b4w import B4wDb
from src.models.comdirect import ComdirectGiroDb
from src.models.transactions import Transaction, TransactionDb
from tests.factories import B4wExportFactory
from tests.factories import B4wExportFactory, CategoryFactory
B4W_PATH = Path("tests/test_data/b4w_export_dummy_01.csv")
COMDIRECT_PATH = Path("tests/test_data/comdirect_export_dummy_01.txt")
@@ -108,7 +108,7 @@ def test_consolidate_b4w_signed_amount_and_category(db_session: Session):
export = B4wExportFactory.build(
Amt="50.00",
RmtInf="Supermarket",
Category="Lebenshaltung:Lebensmittel",
Category=CategoryFactory.build().to_str(),
CdtDbtInd="DBIT",
)
staging = upsert_b4w(db_session, export, do_commit=False)