python-maxcube-api
python-maxcube-api copied to clipboard
Patch mock usage in test_commander.py
Fix unittest mock conflicts by replacing class-level @patch decorator with setUp()/addCleanup pattern, storing the mock in self.ClassMock. Class-level @patch doesn't always work properly with unittest.TestCase.