Created
March 9, 2019 18:54
-
-
Save NMZivkovic/6e44b0027408e362506f2e4d8904a5ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_partial_mock(self): | |
with mock.patch.object(Rick, 'assign', return_value=333): | |
rick = Rick(111) | |
self.assertEqual(rick.assign(), 333) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment