mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-10 16:50:43 +02:00
lint: Adjust ‘check-inputs-should-not-be-an-input-at-all’ tests for Python.
This is a followup to bea2914b3d
, which
removed ‘python-setuptools’ from the list of “unauthorized” inputs.
* tests/lint.scm ("inputs: python-pip should not be an input at all (input)")
("inputs: python-pip should not be an input at all (native-input)")
("inputs: python-pip should not be an input at all (propagated-input)"):
New tests, with s/python-setuptools/python-pip/.
Change-Id: Ic575825da5c64052d3d573b37b458bd61547bae1
This commit is contained in:
parent
ea7a6fa8c6
commit
3e626bb39d
1 changed files with 10 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012, 2013 Cyril Roelandt <tipecaml@gmail.com>
|
;;; Copyright © 2012, 2013 Cyril Roelandt <tipecaml@gmail.com>
|
||||||
;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
|
;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
|
||||||
;;; Copyright © 2014-2024 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2014-2025 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
|
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||||
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
;;; Copyright © 2017 Alex Kost <alezost@gmail.com>
|
;;; Copyright © 2017 Alex Kost <alezost@gmail.com>
|
||||||
|
@ -448,31 +448,29 @@
|
||||||
(check-inputs-should-be-native pkg))))
|
(check-inputs-should-be-native pkg))))
|
||||||
|
|
||||||
(test-equal
|
(test-equal
|
||||||
"inputs: python-setuptools should not be an input at all (input)"
|
"inputs: python-pip should not be an input at all (input)"
|
||||||
"'python-setuptools' should probably not be an input at all"
|
"'python-pip' should probably not be an input at all"
|
||||||
(single-lint-warning-message
|
(single-lint-warning-message
|
||||||
(let ((pkg (dummy-package "x"
|
(let ((pkg (dummy-package "x"
|
||||||
(inputs `(("python-setuptools"
|
(inputs `(("python-pip" ,python-pip))))))
|
||||||
,python-setuptools))))))
|
|
||||||
(check-inputs-should-not-be-an-input-at-all pkg))))
|
(check-inputs-should-not-be-an-input-at-all pkg))))
|
||||||
|
|
||||||
(test-equal
|
(test-equal
|
||||||
"inputs: python-setuptools should not be an input at all (native-input)"
|
"inputs: python-pip should not be an input at all (native-input)"
|
||||||
"'python-setuptools' should probably not be an input at all"
|
"'python-pip' should probably not be an input at all"
|
||||||
(single-lint-warning-message
|
(single-lint-warning-message
|
||||||
(let ((pkg (dummy-package "x"
|
(let ((pkg (dummy-package "x"
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-setuptools"
|
`(("python-pip" ,python-pip))))))
|
||||||
,python-setuptools))))))
|
|
||||||
(check-inputs-should-not-be-an-input-at-all pkg))))
|
(check-inputs-should-not-be-an-input-at-all pkg))))
|
||||||
|
|
||||||
(test-equal
|
(test-equal
|
||||||
"inputs: python-setuptools should not be an input at all (propagated-input)"
|
"inputs: python-pip should not be an input at all (propagated-input)"
|
||||||
"'python-setuptools' should probably not be an input at all"
|
"'python-pip' should probably not be an input at all"
|
||||||
(single-lint-warning-message
|
(single-lint-warning-message
|
||||||
(let ((pkg (dummy-package "x"
|
(let ((pkg (dummy-package "x"
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-setuptools" ,python-setuptools))))))
|
`(("python-pip" ,python-pip))))))
|
||||||
(check-inputs-should-not-be-an-input-at-all pkg))))
|
(check-inputs-should-not-be-an-input-at-all pkg))))
|
||||||
|
|
||||||
(test-assert "input labels: no warnings"
|
(test-assert "input labels: no warnings"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue