Skip to content

Patch mock usage in test_commander.py#50

Open
plenaerts wants to merge 1 commit into
uebelack:masterfrom
plenaerts:mock_at_functions
Open

Patch mock usage in test_commander.py#50
plenaerts wants to merge 1 commit into
uebelack:masterfrom
plenaerts:mock_at_functions

Conversation

@plenaerts

Copy link
Copy Markdown

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.

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 work properly with unittest.TestCase.
Forwarded: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant