(pytester: Pytester)
| 4400 | |
| 4401 | |
| 4402 | def test_fixture_parametrization_nparray(pytester: Pytester) -> None: |
| 4403 | pytest.importorskip("numpy") |
| 4404 | |
| 4405 | pytester.makepyfile( |
| 4406 | """ |
| 4407 | from numpy import linspace |
| 4408 | from pytest import fixture |
| 4409 | |
| 4410 | @fixture(params=linspace(1, 10, 10)) |
| 4411 | def value(request): |
| 4412 | return request.param |
| 4413 | |
| 4414 | def test_bug(value): |
| 4415 | assert value == value |
| 4416 | """ |
| 4417 | ) |
| 4418 | result = pytester.runpytest() |
| 4419 | result.assert_outcomes(passed=10) |
| 4420 | |
| 4421 | |
| 4422 | def test_fixture_arg_ordering(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected