[ trixie ]
[ sid ]
[ 原始碼: python-inline-snapshot ]
套件:python-inline-snapshot-doc(0.18.1-1)
python-inline-snapshot-doc 的相關連結
Debian 的資源:
下載原始碼套件 python-inline-snapshot:
- [python-inline-snapshot_0.18.1-1.dsc]
- [python-inline-snapshot_0.18.1.orig.tar.gz]
- [python-inline-snapshot_0.18.1-1.debian.tar.xz]
維護小組:
外部的資源:
- 主頁 [github.com]
相似套件:
Create and update inline snapshots in your Python code (Documentation)
inline-snapshot can be used for different things:
* Golden master/approval/snapshot testing. The idea is that you have a function with a currently unknown result and you want to write a tests, which ensures that the result does not change during refactoring. * Compare things which are complex like lists with lot of numbers or complex data structures. * Things which might change during the development like error messages.
inline-snapshot automates the process of recording, storing and updating the value you want to compare with. The value is converted with repr() and stored in the source file as argument of the snapshot() function.
This package contains the documentation for python3-inline-snapshot.