[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: python-graphql-relay: Enable tests.
From: |
guix-commits |
Subject: |
02/02: gnu: python-graphql-relay: Enable tests. |
Date: |
Mon, 27 Sep 2021 02:24:32 -0400 (EDT) |
efraim pushed a commit to branch core-updates-frozen
in repository guix.
commit 8e220c23320c747d9bbe551f4545c5088ad0f494
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Sep 27 08:57:15 2021 +0300
gnu: python-graphql-relay: Enable tests.
* gnu/packages/python-xyz.scm (python-graphql-relay)[arguments]: Use
custom 'check phase.
[native-inputs]: Add python-pytest, python-pytest-asyncio.
---
gnu/packages/python-xyz.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dac6a9a..9821e92 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16111,7 +16111,16 @@ to Python.")
"1d70vwam9gjhx7fqzsa03x7lc6ivcqki5r9pk8m7rslmb7pagmbh"))))
(build-system python-build-system)
(arguments
- '(#:tests? #f)) ; The tests are not distributed
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "tests")))))))
+ (native-inputs
+ (list
+ python-pytest
+ python-pytest-asyncio))
(propagated-inputs
`(("python-graphql-core" ,python-graphql-core)))
(home-page "https://github.com/graphql-python/graphql-relay-py")