test: add two new tests for Parameter.__init__ in src/click/core.py
Before adoption: this commit came in with the history the project adopted, so no landing records it.
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`. Fixes #2860 Recreation of #2861
authored by Kevin Deldycke · committed by Kevin Deldycke · parent 0be2bd3 · Browse files · 2 files+39 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+39 added−0 removed
- tests:+39 added−0 removed