mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
test_container.py decorates with @unittest.mock.patch but imports only unittest. A submodule is not bound as an attribute by importing its package, so the name resolves only while some other module in the same interpreter has already imported unittest.mock. That makes the defect invisible in a full run, where another suite imports it first, and fatal under a narrow INFINITO_TEST_PATTERN or on an xdist worker that receives this file alone: collection dies with AttributeError: module 'unittest' has no attribute 'mock'. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>