docs: deprecation.rst: Add missing arguments to code example
In the proposed new style using `@pytest.mark.parametrize`, the example function signature missed the actual arguments. Add the missing arguments
This commit is contained in:
parent
c27c8f41a8
commit
91b2797498
|
@ -243,7 +243,7 @@ This form of test function doesn't support fixtures properly, and users should s
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
@pytest.mark.parametrize("x, y", [(2, 4), (3, 9)])
|
@pytest.mark.parametrize("x, y", [(2, 4), (3, 9)])
|
||||||
def test_squared():
|
def test_squared(x, y):
|
||||||
assert x ** x == y
|
assert x ** x == y
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue