Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created March 9, 2019 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/79ad96f5bcd84a7272e952ee2e0721b5 to your computer and use it in GitHub Desktop.
Save NMZivkovic/79ad96f5bcd84a7272e952ee2e0721b5 to your computer and use it in GitHub Desktop.
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