Django - Testing Django Applications
What is wrong with this test code that tries to mock an external API call?
from unittest.mock import patch
def test_api_call():
with patch('myapp.services.external_api_call') as mock_call:
mock_call.return_value = {'success': True}
result = external_api_call()
print(result)