Follow Persistance's English names
This commit is contained in:
@@ -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")):
|
||||
|
||||
@@ -10,7 +10,7 @@ import json
|
||||
from datetime import date
|
||||
|
||||
import pytest
|
||||
from persistance.aristas.dbt import DbtQueryRepository
|
||||
from persistance.edges.dbt import DbtQueryRepository
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlmodel import Session
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ from types import SimpleNamespace
|
||||
import pandas as pd
|
||||
import pyarrow.parquet as pq
|
||||
import pytest
|
||||
from persistance.aristas.oro import CohortBuild, CohortMember
|
||||
from persistance.aristas.dbt import DbtQueryRepository
|
||||
from persistance.edges.gold import CohortBuild, CohortMember
|
||||
from persistance.edges.dbt import DbtQueryRepository
|
||||
from sqlalchemy import create_engine, text
|
||||
from sqlmodel import Session
|
||||
|
||||
|
||||
Reference in New Issue
Block a user