Pakiet: python3-pytest-golden (1.0.1-1)
Odnośniki dla python3-pytest-golden
Zasoby systemu Debian:
- Raporty o błędach
- Developer Information
- Dziennik zmian w systemie Debian
- Informacje nt. praw autorskich
- Śledzenie łatek systemu Debian
Pobieranie pakietu źródłowego pytest-golden:
Opiekunowie:
Zasoby zewnętrzne:
- Strona internetowa [github.com]
Podobne pakiety:
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.
Inne pakiety związane z python3-pytest-golden
|
|
|
|
-
- dep: python3
- Interaktywny, wysokopoziomowy i obiektowy język programowania (domyślna wersja Python 3)
-
- dep: python3-pytest
- Simple, powerful testing in Python3
-
- dep: python3-ruamel.yaml
- Roundtrip YAML parser/emitter (Python 3 module)
-
- dep: python3-testfixtures
- Collection of helpers and mock objects (Python3 version)
Pobieranie python3-pytest-golden
| Architektura | Rozmiar pakietu | Rozmiar po instalacji | Pliki |
|---|---|---|---|
| all | 15,6 KiB | 51,0 KiB | [lista plików] |
