• Xtreak's avatar
    bpo-21478: Record calls to parent when autospecced objects are used as child... · 7397cda9
    Xtreak authored
    bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688)
    
    * Clear name and parent of mock in autospecced objects used with attach_mock
    
    * Add NEWS entry
    
    * Fix reversed order of comparison
    
    * Test child and standalone function calls
    
    * Use a helper function extracting mock to avoid code duplication and refactor tests.
    7397cda9
mock.py 94.2 KB