Fix: adapt to new Table form

This commit is contained in:
Bertrand Benjamin 2025-01-03 15:56:29 +01:00
parent e28ab332a7
commit 350c03dbfe

View File

@ -6,12 +6,20 @@ from plesna.models.transformation import Transformation
def test_consume_flux():
sources = {
"src1": Table(id="src1", value="here"),
"src2": Table(id="src2", value="here"),
"src1": Table(
id="src1", repo_id="test", schema_id="test", name="test", value="here"
),
"src2": Table(
id="src2", repo_id="test", schema_id="test", name="test", value="here"
),
}
targets = {
"tgt1": Table(id="tgt1", value="this"),
"tgt2": Table(id="tgt2", value="that"),
"tgt1": Table(
id="tgt1", repo_id="test", schema_id="test", name="test", value="this"
),
"tgt2": Table(
id="tgt2", repo_id="test", schema_id="test", name="test", value="that"
),
}
def func(sources, targets, **kwrds):