すべてのオプション
bookworm  ] [  trixie  ] [  forky  ] [  sid  ]
[ ソース: pytest-golden  ]

パッケージ: python3-pytest-golden (1.0.1-1)

python3-pytest-golden に関するリンク

Screenshot

Debian の資源:

pytest-golden ソースパッケージをダウンロード:

メンテナ:

外部の資源:

類似のパッケージ:

pytest plugin to store expected test outputs in separate data files

This library is a plugin for pytest that supports golden testing by storing expected outputs in YAML data files. Tests can retrieve both input and expected output values directly from files, allowing for more maintainable and clear assertion data, especially when working with complex results. Instead of hardcoding expected values within the test code, data files are used as the single source of truth for what should be returned by tests.

The plugin provides a fixture for conveniently loading and updating these data files. When code changes alter the output, a dedicated pytest command-line option enables automated population or updating of expected results within the corresponding YAML files.

Files are automatically associated with test functions via decorator-based parameters or by explicit file references inside test bodies. Multiple test cases can be defined by placing several YAML files under organized directories, each representing a variation of input and output data pairs.

その他の python3-pytest-golden 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • enhances

python3-pytest-golden のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 15.6 kB51.0 kB [ファイル一覧]