[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: Add python-pytest-mockito.
From: |
guix-commits |
Subject: |
04/07: gnu: Add python-pytest-mockito. |
Date: |
Fri, 15 Oct 2021 13:53:13 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit ca3fea7636d07d3063b66158a8ca207cff53b0bb
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Oct 14 16:09:22 2021 -0400
gnu: Add python-pytest-mockito.
* gnu/packages/python-check.scm (python-pytest-mockito): New variable.
---
gnu/packages/python-check.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 0421210..fc3c8f5 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -611,6 +611,46 @@ enables repeating a single test, or multiple tests, a
specific number of
times.")
(license license:mpl2.0)))
+(define-public python-pytest-mockito
+ (package
+ (name "python-pytest-mockito")
+ (version "0.0.4")
+ (source
+ (origin
+ (method git-fetch) ;no tests in pypi archive
+ (uri (git-reference
+ (url "https://github.com/kaste/pytest-mockito")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0hnpazaw3mglx1c405z2hkavgan99rqb3wgrcqk8x5kmhpay53xx"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest" "-vv")))))))
+ (propagated-inputs
+ `(("python-mockito" ,python-mockito)
+ ("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/kaste/pytest-mockito")
+ (synopsis "Mockito base fixtures for Pytest")
+ (description "The @code{pytest-mockito} plugin provides base Mockito
+fixtures for Pytest. It covers the main entry points of the Mockito mocking
+framework and makes it easy to undo any monkey patching. The fixtures are:
+@itemize
+@item when
+@item when2
+@item expect
+@item patch
+@item unstub
+@item spy2
+@end itemize")
+ (license license:expat)))
+
(define-public python-pytest-mpl
(package
(name "python-pytest-mpl")
- branch master updated (44469ff -> b87dbf2), guix-commits, 2021/10/15
- 02/07: gnu: python-robotframework-sshlibrary: Update to 3.7.0 and honor TESTS?., guix-commits, 2021/10/15
- 03/07: gnu: Add python-mockito., guix-commits, 2021/10/15
- 05/07: gnu: Add python-robotframework-pythonlibcore., guix-commits, 2021/10/15
- 01/07: gnu: python-robotframework: Update to 4.1.1 and honor TESTS?., guix-commits, 2021/10/15
- 04/07: gnu: Add python-pytest-mockito.,
guix-commits <=
- 06/07: gnu: Add python-robotframework-seleniumlibrary., guix-commits, 2021/10/15
- 07/07: gnu: Add python-robotframework-seleniumscreenshots., guix-commits, 2021/10/15