From 7a918a161737b56ee6f692abcdb79aaa0646caef Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 30 Jul 2015 23:21:19 -0300 Subject: [PATCH] Fix regendoc section in fixture.txt Noticed thanks to #903 --- doc/en/fixture.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/en/fixture.txt b/doc/en/fixture.txt index 7ed8399de..31dfdd358 100644 --- a/doc/en/fixture.txt +++ b/doc/en/fixture.txt @@ -443,6 +443,7 @@ make a string based on the argument name. It is possible to customise the string used in a test ID for a certain fixture value by using the ``ids`` keyword argument:: + # content of test_ids.py import pytest @pytest.fixture(params=[0, 1], ids=["spam", "ham"]) @@ -472,7 +473,7 @@ return ``None`` then pytest's auto-generated ID will be used. Running the above tests results in the following test IDs being used:: - $ py.test --collect-only + $ py.test --collect-only test_ids.py =========================== test session starts ============================ platform linux -- Python 3.4.1 -- py-1.4.27 -- pytest-2.7.1 rootdir: /tmp/doc-exec-98, inifile: