summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm63
1 files changed, 63 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index ec4a41a8b6d..370543d25ae 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3697,6 +3697,69 @@ The main usage is to use the @code{qtbot} fixture, responsible for handling
3697interaction, like key presses and mouse clicks.") 3697interaction, like key presses and mouse clicks.")
3698 (license license:expat))) 3698 (license license:expat)))
3699 3699
3700(define-public python-pytest-random-order
3701 (package
3702 (name "python-pytest-random-order")
3703 (version "1.2.0")
3704 (source
3705 (origin
3706 (method git-fetch)
3707 (uri (git-reference
3708 (url "https://github.com/jbasko/pytest-random-order")
3709 (commit (string-append "v" version))))
3710 (file-name (git-file-name name version))
3711 (sha256
3712 (base32 "044cq8bk3815xckm75yfsjd4x7ykksss9r0r1bb6xi2pnwz3cvvk"))))
3713 (build-system pyproject-build-system)
3714 (arguments
3715 (list
3716 #:test-flags
3717 ;; Tests depending on python-py and python-pytest-xdist, deselect them
3718 ;; to reduce closure size.
3719 #~(list #$@(map (lambda (test)
3720 (string-append "--deselect=tests/"
3721 "test_actual_test_runs.py::"
3722 test))
3723 (list "test_it_works_with_actual_tests[class-2-5]"
3724 "test_it_works_with_actual_tests[module-2-5]"
3725 "test_it_works_with_actual_tests[package-2-5]"
3726 "test_it_works_with_actual_tests[global-2-5]"
3727 "test_it_works_with_actual_tests[none-1-1]"
3728 "test_it_works_with_actual_tests[parent-1-5]"
3729 "test_it_works_with_actual_tests[grandparent-1-5]"
3730 "test_failed_first[global]"
3731 "test_failed_first[package]"
3732 "test_failed_first[module]"
3733 "test_failed_first[class]"
3734 "test_failed_first[parent]"
3735 "test_failed_first[grandparent]"
3736 "test_failed_first[none]"))
3737 #$@(map (lambda (test)
3738 (string-append "--deselect=tests/"
3739 "test_doctests.py::"
3740 test))
3741 (list "test_doctests[global]"
3742 "test_doctests[package]"
3743 "test_doctests[module]"
3744 "test_doctests[class]"
3745 "test_doctests[parent]"
3746 "test_doctests[grandparent]"
3747 "test_doctests[none]"))
3748 "--deselect=tests/test_xdist.py::test_xdist_not_broken")))
3749 (native-inputs
3750 (list python-pytest
3751 python-setuptools))
3752 (home-page "https://github.com/jbasko/pytest-random-order")
3753 (synopsis "Pytest plugin to randomize the order of tests")
3754 (description "@code{pytest-random-order} is a Pytest plugin that
3755randomizes the order of tests. This can be useful to detect a test that
3756passes just because it happens to run after an unrelated test that leaves the
3757system in a favourable state. The plugin allows user to control the level of
3758randomness they want to introduce and to disable reordering on subsets of
3759tests. Tests can be rerun in a specific order by passing a seed value
3760reported in a previous test run.")
3761 (license license:expat)))
3762
3700(define-public python-pytest-randomly 3763(define-public python-pytest-randomly
3701 (package 3764 (package
3702 (name "python-pytest-randomly") 3765 (name "python-pytest-randomly")