Skip to content

Commit

Permalink
Create 2024-07-22-monkeypatch在功能测试中的应用.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 authored Jul 22, 2024
1 parent e8e3cc8 commit 297f948
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _posts/2024-07-22-monkeypatch在功能测试中的应用.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@


# 参考文档
- [Martin Fowler: Mocks Aren't Stubs](https://martinfowler.com/articles/mocksArentStubs.html)
- [Python Docs: unittest.mock.patch](https://docs.python.org/3/library/unittest.mock.html#unittest.mock.patch)
- [Pytest Mock](https://github.com/pytest-dev/pytest-mock)
- [TestContainer](https://testcontainers.com/guides/introducing-testcontainers/)
- [TestContainer python](https://testcontainers-python.readthedocs.io/en/latest/)
- [Testing Like a Pro: A Step-by-Step Guide to Python’s Mock Library](https://www.kdnuggets.com/testing-like-a-pro-a-step-by-step-guide-to-pythons-mock-library)
- [Using Mocks to Test External Dependencies or Reduce Duplication](https://www.obeythetestinggoat.com/book/chapter_mocking.html)

0 comments on commit 297f948

Please sign in to comment.