Skip to content
Advertisement

Tag: unit-testing

How to mock functions with same name, when called twice?

How do I mock a function which has been called twice in the same file, with different parameters? Here is my code snippet: code_file.py code_test.py First mock call to graphql is succeeding. The second graphql call is not getting mocked. It is trying to contact the actual server and receiving 404. How can I mock both graphql client calls? Answer

Publish Unit test in Python

I need to publish the result, but could not and have looked through this site and made research but still having issue to publish test result. Do I need to edit certain file similar to the cypress.json to be able to resolve the issue of Publishing. Both Unit test and the coveratge are not publishing any result and files are

Advertisement