mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-cachy: Adapt tests to python-flexmock 0.12.2.
* gnu/packages/python-xyz.scm (python-cachy)[arguments]<#:phases>[check]: Adapt tests to python-flexmock 0.12.2. Change-Id: I5e462df305a16c6ea4c6e5b92cd35ebfc72270dd
This commit is contained in:
parent
1fc78ed02d
commit
42e6cafdbe
1 changed files with 7 additions and 2 deletions
|
@ -22499,8 +22499,13 @@ classes can also be supported by manually registering converters.")
|
|||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
|
||||
"pytest"))))))
|
||||
(lambda _
|
||||
;; Make it compatible with python-flexmock 0.12.
|
||||
(substitute* (find-files "tests" "\\.py$")
|
||||
(("from flexmock import flexmock, flexmock_teardown")
|
||||
"from flexmock import flexmock; from flexmock._api import flexmock_teardown"))
|
||||
(invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
|
||||
"pytest"))))))
|
||||
(native-inputs
|
||||
(list memcached python-fakeredis python-flexmock python-pifpaf
|
||||
python-pytest))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue