Modifying Stub's Description With A Python Specific Example
What are you trying to address
We are currently modifying the stub's description to provide a more specific definition on how stubs works. This includes providing scenarios where stubs are useful
Providing a python specific example for stubs section
Description of new changes
We are currently modifying the lines involving Stubs typically ignore inputs they do not expect or will always return the same thing and replace it with a more specific definition of stubs . In this we have included
what is a Stub
how they work
what kind of logic can be present in stub
when are they useful
The last point (when are they useful) is key , because this helps to use stubs in situations when we have to test APIs we dont own.
We have also provided a python code sample for the same.
For all pull requests
[ ] Link to the issue you are solving (so it gets closed)
[x] Label the pull request with the appropriate area(s)
[x] Assign potential reviewers (you may also want to contact them on Teams to ensure timely reviews)
[ ] Assign the project - Engineering Playbook Backlog
Modifying Stub's Description With A Python Specific Example
What are you trying to address
Description of new changes
We are currently modifying the lines involving Stubs typically ignore inputs they do not expect or will always return the same thing and replace it with a more specific definition of stubs . In this we have included
what is a Stub
how they work
what kind of logic can be present in stub
when are they useful
The last point (when are they useful) is key , because this helps to use stubs in situations when we have to test APIs we dont own.
We have also provided a python code sample for the same.
For all pull requests