Follow Persistance's English names

This commit is contained in:
2026-11-08 17:28:24 -06:00
committed by rockdrigo
parent 11e768893e
commit 9ba7bdddb6
12 changed files with 31 additions and 31 deletions
+4 -4
View File
@@ -2,7 +2,7 @@
run by a Hamilton driver built from that module alone, and their place in the asset graph.
Fixtures: `repositories`, an in-memory SQLite database with the CaCu tables, one cohort build and a plain
`timeline_events` table; it returns the `CohorteRepository` and a `TimelineRepository` bound to
`timeline_events` table; it returns the `CohortRepository` and a `TimelineRepository` bound to
`timeline_query`, which stands in for the kit's query over that table. `_run` builds the driver and
executes the requested nodes.
"""
@@ -22,8 +22,8 @@ from core.cacu.indicadores.models import (
)
from core.indicadores.cohortes import TablasCohorte
from hamilton import driver
from persistance.aristas.oro import CohorteRepository
from persistance.aristas.plata import TIMELINE_COLUMNS, TimelineRepository
from persistance.edges.gold import CohortRepository
from persistance.edges.silver import TIMELINE_COLUMNS, TimelineRepository
from persistance.assets import Asset, InvalidGraph, validate
from sqlalchemy import Column, Date, DateTime, Float, Integer, MetaData, String, Table, insert, select
from sqlalchemy.pool import StaticPool
@@ -102,7 +102,7 @@ def repositories():
session.connection().execute(insert(events), EVENTS)
session.commit()
factory = lambda: Session(engine) # noqa: E731
return CohorteRepository(factory, TABLES), TimelineRepository(factory).with_query(timeline_query)
return CohortRepository(factory, TABLES), TimelineRepository(factory).with_query(timeline_query)
def _run(repositories, build_id, nodes=("members", "timeline")):