diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-15 10:12:30 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:35:52 +0100 |
| commit | 032e2e49bb03db629ba4a676ea925d873de4f6c8 (patch) | |
| tree | 6266650f72c31707b5adc4a38b6b467099f32825 | |
| parent | 15fb90edc91809379f856025a7ec00f08b3242f4 (diff) | |
gnu: Add python-test2ref.
* gnu/packages/python-check.scm (python-test2ref): New variable.
Change-Id: Id3253057b0a162a8e2a1348c11d7182db572e19d
| -rw-r--r-- | gnu/packages/python-check.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 880bb8b11c..08b552de09 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3869,6 +3869,38 @@ data in a standard way.") which make writing and running functional and integration tests easier.") (license license:asl2.0))) +(define-public python-test2ref + (package + (name "python-test2ref") + (version "1.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "test2ref" version)) + (sha256 + (base32 "1jx7cdqwpyq3gs9czvz0fwijkqhvmbny5h3zgdqlbrw8y3miv4gq")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pdm-backend + python-pytest + python-pytest-cov)) + (propagated-inputs + (list python-binaryornot)) + (home-page "https://github.com/nbiotcloud/test2ref") + (synopsis "Testing Against Learned Reference Data") + (description + "This package provides a unit tests framework backed by ML features and +working in two modes: + +@itemize +@item Testing: Test result in @code{tmp_path} is compared against a known +reference. Any deviation in the files, causes a fail. +@item Learning: The test result in @code{tmp_path} is taken as reference and +is copied to the reference folder, which should be committed to version +control and kept as reference. +@end itemize") + (license license:expat))) + (define-public python-testfixtures (package (name "python-testfixtures") |
