Test collect parametrized func with wrong number of args.
(pytester: Pytester)
| 427 | |
| 428 | |
| 429 | def test_parametrized_with_kwargs(pytester: Pytester) -> None: |
| 430 | """Test collect parametrized func with wrong number of args.""" |
| 431 | py_file = pytester.makepyfile( |
| 432 | """ |
| 433 | import pytest |
| 434 | |
| 435 | @pytest.fixture(params=[1,2]) |
| 436 | def a(request): |
| 437 | return request.param |
| 438 | |
| 439 | @pytest.mark.parametrize(argnames='b', argvalues=[1, 2]) |
| 440 | def test_func(a, b): |
| 441 | pass |
| 442 | """ |
| 443 | ) |
| 444 | |
| 445 | result = pytester.runpytest(py_file) |
| 446 | assert result.ret == 0 |
| 447 | |
| 448 | |
| 449 | def test_parametrize_iterator(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected