You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function Parameter.__init__ does not have 100% coverage. This commit
adds two new test cases that improve the coverage. The first one tests
that a ValueError is raised when `nargs != self.type.arity`. The second
one tests that a ValueError is raised when `_check_iter(check_default)`
raises `TypeError`.
Fixespallets#2860
* test: add two new tests for Parameter.__init__ in src/click/core.py
The function Parameter.__init__ does not have 100% coverage. This commit
adds two new test cases that improve the coverage. The first one tests
that a ValueError is raised when `nargs != self.type.arity`. The second
one tests that a ValueError is raised when `_check_iter(check_default)`
raises `TypeError`.
Fixespallets#2860
* fix too long line in tests/test_options.py
fixes following error from pre-commit run on gh actions
tests/test_options.py:1081:89: E501 Line too long (90 > 88)
The function
Parameter.__init__
insrc/click/core.py
does not have 100% coverage.Two new test cases could be added.
raise ValuError
(wherenargs != self.type.arity
):click/src/click/core.py
Lines 2112 to 2115 in 5dd6288
raise ValuError
which happens when_check_iter(check_default)
raisesTypeError
.click/src/click/core.py
Lines 2131 to 2143 in 5dd6288
The text was updated successfully, but these errors were encountered: