全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: python-fudge  ]

套件:python3-fudge(1.1.1-2)

python3-fudge 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 python-fudge

維護小組:

外部的資源:

相似套件:

Python 3 module for using fake objects for tests

Fudge is a Python module for using fake objects (mocks and stubs) to test real ones.

In readable Python code, you declare what methods are available on your fake and how they should be called. Then you inject that into your application and start testing. This declarative approach means you don’t have to record and playback actions and you don’t have to inspect your fakes after running code. If the fake object was used incorrectly then you’ll see an informative exception message with a traceback that points to the culprit.

Fudge was inspired by Mocha which is a simpler version of jMock. But unlike Mocha, Fudge does not automatically hijack real objects; you explicitly patch them in your test. And unlike jMock, Fudge is only as strict about expectations as you want it to be. If the type of arguments sent to the fake method aren’t important then you don’t have to declare an expectation for them.

This is the Python 3 version of the package.

其他與 python3-fudge 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-fudge

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 29。5 kB174。0 kB [檔案列表]