Skip to content

Commit aa02511

Browse files
committed
test(pipeline): expect Layout.__init__ for the DeusData#1548 constructor call
pipeline_python_init_function_shares_submodule_qn pinned the old Class target for Layout("demo"). Layout defines __init__, so the constructor call now lands on that method. The other tests that pin the contract were moved in the previous commit; this one reached main afterwards. Refs DeusData#1642 Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
1 parent 1b64c50 commit aa02511

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tests/test_pipeline.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21140,8 +21140,9 @@ static int pyn_run_init_collision(int fillers) {
2114021140
const char *project = cbm_pipeline_project_name(p);
2114121141
imports[run] = pyn_edge(s, project, "tests.test_app.py.__file__",
2114221142
"src.rowpkg.layout.Layout", "IMPORTS");
21143+
/* Layout defines __init__, so Layout("demo") targets it (#1642). */
2114321144
calls[run] = pyn_edge(s, project, "tests.test_app.test_build",
21144-
"src.rowpkg.layout.Layout", "CALLS");
21145+
"src.rowpkg.layout.Layout.__init__", "CALLS");
2114521146
method[run] = pyn_edge(s, project, "tests.test_app.test_build",
2114621147
"src.rowpkg.layout.Layout.create", "CALLS");
2114721148
cbm_store_close(s);
@@ -21160,7 +21161,7 @@ static int pyn_run_init_collision(int fillers) {
2116021161
for (int run = 0; run < 2; run++) {
2116121162
ASSERT_EQ(rc[run], 0);
2116221163
ASSERT_TRUE(imports[run]); /* the class stays importable */
21163-
ASSERT_TRUE(calls[run]); /* Layout("demo") */
21164+
ASSERT_TRUE(calls[run]); /* Layout("demo") -> Layout.__init__ */
2116421165
ASSERT_TRUE(method[run]); /* .create() through the constructed type */
2116521166
}
2116621167
PASS();

0 commit comments

Comments
 (0)