Aug-25-2022, 05:52 PM
(This post was last modified: Aug-25-2022, 05:53 PM by Yoriz.
Edit Reason: Added code tags
)
I have a method call getKey() returning url and key and I need to test the function using python unittest.mock
1 2 3 4 5 6 |
def getKey(): key = "xxxxx" url = 'www.test.com' return url,key |