https://github.com/hscspring/python-cookbook
https://github.com/hscspring/python-cookbook
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hscspring/python-cookbook
- Owner: hscspring
- License: apache-2.0
- Created: 2022-01-17T03:52:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T02:57:41.000Z (almost 2 years ago)
- Last Synced: 2025-07-01T04:38:27.218Z (11 months ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-cookbook
## Mocker
[Mocking database calls in python using pytest-mock - Stack Overflow](https://stackoverflow.com/questions/66223290/mocking-database-calls-in-python-using-pytest-mock)
[Pytest-mock. How to mock your database connection. | by Mariusz Raczynski | Medium](https://medium.com/@mariusz.raczynski2/pytest-mock-how-to-mock-your-database-connection-5c84a5a0bfc3)
## yield and return
[python - What does the "yield" keyword do? - Stack Overflow](https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do)