Commit ac7d996
test(test_scaffold): expect canonical-path __module__ in scaffolded-connection error log
`TestScaffoldConnectionAndRun::test_run_and_not_implemented_error`
expects the agent to log a specific error line when a scaffolded
connection's ``connect()`` raises ``NotImplementedError``. The line
prints ``repr(type(connection))``, which renders the class's
``__module__``.
With this PR, ``Connection.from_config`` registers the loaded
connection module under the canonical
``packages.<author>.connections.<name>.connection`` dotted path
instead of the bare ``connection_module`` constant. So the class
is now ``<class 'packages.default_author.connections.my_con.connection.MyScaffoldAsyncConnection'>``
rather than ``<class 'connection_module.MyScaffoldAsyncConnection'>``.
Update the expected string to match.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 277a31c commit ac7d996
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments