Python mocking dbutils in unittests
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 12:43 PM
I am trying to write some unittests using pytest, but I am coming accross the problem of how to mock my dbutils method when dbutils isn't being defined in my notebook.
Is there a way to do this so that I can unit test individual functions that are utilizing dbutils?
Labels:
- Labels:
-
Python