summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2024-06-01 17:36:33 +0200
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:37 +0100
commit5e22e9b3aa26f6e62746c7d8c17c1c2786c11e93 (patch)
treed89bd9b1c8081e64b283f62cffbbb042330d1635 /tests
parent77e1781ffed490f07ceb190d9e0d174622fb9cf3 (diff)
import: pypi: Ignore pypi-ignored-inputs.
* guix/import/pypi.scm (pypi-ignored-inputs): New variable. (compute-inputs): Use it. * tests/pypi.scm (parse-requires.txt): Add ignored input to test the feature. * guix/lint.scm (check-inputs-should-be-native): Adapt list. (check-inputs-should-not-be-an-input-at-all): Use pypi-ignored-list. Change-Id: I297793b71f9ffdfbe7cc4e883777f8823941adf0 Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/import/pypi.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/import/pypi.scm b/tests/import/pypi.scm
index 59d0bfc2104..8da15edcd98 100644
--- a/tests/import/pypi.scm
+++ b/tests/import/pypi.scm
@@ -97,6 +97,7 @@ bar != 2
[test]
pytest (>=2.5.0)
+pytest-cov # read but ignored
")
;; Beaker contains only optional dependencies.
@@ -258,7 +259,7 @@ files specified by SPECS. Return its file name."
(map specification->requirement-name test-specifications))
(test-equal "parse-requires.txt"
- (list '("foo" "bar") '("pytest"))
+ (list '("foo" "bar") '("pytest" "pytest-cov"))
(mock ((ice-9 ports) call-with-input-file
call-with-input-string)
(parse-requires.txt test-requires.txt)))