Use a string instead of the class.
@patch('provider.Provider', autospec=True)
def test_init(self, mock_provider):
pass
Use a string instead of the class.
@patch('provider.Provider', autospec=True)
def test_init(self, mock_provider):
pass