Commit b56d336
Fix CI: use Python 3.12 to match development environment
Python 3.10's unittest.mock._dot_lookup resolves dotted patch paths
differently from 3.12: it walks the path with getattr, finds the
imported Click Command object at 'th_cli.commands.abort_testing' (due
to 'from .abort_testing import abort_testing' in __init__.py), and
then fails trying to get 'get_client' off the Command object.
Python 3.12 correctly resolves the patch target via sys.modules,
finding the module rather than the imported name.
All tests pass locally on 3.12; switching CI to match eliminates
the AttributeError failures across all command modules.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 99b0fe3 commit b56d336
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments