T-213: M2.4b — Add Python stockbot register_signal, batch feature runner, and M2 MarketDataStore methods

This commit is contained in:
Studio 2026-12-05 17:40:55 -05:00
parent 213b8b3ff1
commit f30c78758f

View file

@ -822,10 +822,10 @@ def test_sql_and_polars_batch_materialization_cross_section_and_events(tmp_path:
("known_at", "TIMESTAMP WITH TIME ZONE"),
("value", "DOUBLE"),
]
rows_2025 = con.execute(f"SELECT listing_id, ts, value FROM read_parquet('{out_2025}')").fetchall()
rows_2025 = con.execute(f"SELECT listing_id, value FROM read_parquet('{out_2025}')").fetchall()
assert [r[0] for r in rows_2025] == [1, 2] # listing 3 had no prev_close; Jul 2 post-cutoff excluded
assert rows_2025[0][2] == pytest.approx(0.10)
assert rows_2025[1][2] == pytest.approx(-0.20)
assert rows_2025[0][1] == pytest.approx(0.10)
assert rows_2025[1][1] == pytest.approx(-0.20)
finally:
con.close()