diff options
| author | Evgeny Pisemsky <mail@pisemsky.site> | 2025-02-07 19:51:05 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-08 18:04:08 +0000 |
| commit | 8010d73407205a63f2f27e719007ee9975ea8602 (patch) | |
| tree | 02cee1623135eba5aa7fb90d8c3ea57566525790 /gnu/packages/python-check.scm | |
| parent | 05516fcb24799d00947751a434dd797f3fbb9d64 (diff) | |
gnu: Add python-pytest-snapshot.
* gnu/packages/check.scm (python-pytest-snapshot): New variable.
Change-Id: Ie3126b6233f53640adb4dcb90e4d348eaf9ffbff
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 8d494fe09a4..aac500f4437 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | ;;; Copyright © 2024 David Elsing <david.elsing@posteo.net> | 23 | ;;; Copyright © 2024 David Elsing <david.elsing@posteo.net> |
| 24 | ;;; Copyright © 2024 Eric Bavier <bavier@posteo.net> | 24 | ;;; Copyright © 2024 Eric Bavier <bavier@posteo.net> |
| 25 | ;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi> | 25 | ;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi> |
| 26 | ;;; Copyright © 2025 Evgeny Pisemsky <mail@pisemsky.site> | ||
| 26 | ;;; | 27 | ;;; |
| 27 | ;;; This file is part of GNU Guix. | 28 | ;;; This file is part of GNU Guix. |
| 28 | ;;; | 29 | ;;; |
| @@ -659,6 +660,36 @@ tests at the granularity of individual test cases, which can be run in | |||
| 659 | parallel and on multiple machines.") | 660 | parallel and on multiple machines.") |
| 660 | (license license:expat)))) | 661 | (license license:expat)))) |
| 661 | 662 | ||
| 663 | (define-public python-pytest-snapshot | ||
| 664 | (package | ||
| 665 | (name "python-pytest-snapshot") | ||
| 666 | (version "0.9.0") | ||
| 667 | (source | ||
| 668 | (origin | ||
| 669 | (method url-fetch) | ||
| 670 | (uri (pypi-uri "pytest-snapshot" version)) | ||
| 671 | (sha256 | ||
| 672 | (base32 "1wxp9pv5yqpj3fk450ld1mjhhdxyvssgi6gqxyghz1iyphx3q0f7")))) | ||
| 673 | (build-system pyproject-build-system) | ||
| 674 | (arguments | ||
| 675 | (list | ||
| 676 | ;; Skip failing test. Related upstream issue: | ||
| 677 | ;; <https://github.com/joseph-roitman/pytest-snapshot/issues/71>. | ||
| 678 | #:test-flags #~(list "-k" "not test_assert_match_failure_bytes"))) | ||
| 679 | (native-inputs | ||
| 680 | (list python-setuptools | ||
| 681 | python-setuptools-scm | ||
| 682 | python-wheel)) | ||
| 683 | (propagated-inputs | ||
| 684 | (list python-pytest)) | ||
| 685 | (home-page "https://github.com/joseph-roitman/pytest-snapshot") | ||
| 686 | (synopsis "Pytest plugin for snapshot testing") | ||
| 687 | (description | ||
| 688 | "This package provides a plugin for snapshot testing with pytest. It can | ||
| 689 | be used to test that the value of an expression does not change | ||
| 690 | unexpectedly.") | ||
| 691 | (license license:expat))) | ||
| 692 | |||
| 662 | (define-public python-testfixtures | 693 | (define-public python-testfixtures |
| 663 | (package | 694 | (package |
| 664 | (name "python-testfixtures") | 695 | (name "python-testfixtures") |
