mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add python-pytest-mockito.
* gnu/packages/python-check.scm (python-pytest-mockito): New variable.
This commit is contained in:
parent
0930ca2c63
commit
ca3fea7636
1 changed files with 40 additions and 0 deletions
|
@ -611,6 +611,46 @@ enables repeating a single test, or multiple tests, a specific number of
|
||||||
times.")
|
times.")
|
||||||
(license license:mpl2.0)))
|
(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
|
(define-public python-pytest-mpl
|
||||||
(package
|
(package
|
||||||
(name "python-pytest-mpl")
|
(name "python-pytest-mpl")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue