Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def test_patch_import(self):
with mock.patch('path.os') as os_mocked:
current_path()
os_mocked.getcwd.assert_called_once()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment