pytest-patches / parametrize

# HG changeset patch
# Parent 79a5b776a6f3f34f8699e130cfe5440b1ff67336
diff --git a/doc/example/parametrize.txt b/doc/example/parametrize.txt
--- a/doc/example/parametrize.txt
+++ b/doc/example/parametrize.txt
@@ -326,3 +326,19 @@ Running it results in some skips if we d
    ========================= short test summary info ==========================
    SKIP [27] /home/hpk/p/pytest/doc/example/multipython.py:36: 'python2.8' not found
    48 passed, 27 skipped in 1.71 seconds
+
+
+
+Extended Parameter configuration
+--------------------------------
+
+
+::
+    def pytest_generate_test(metafunc):
+        marks = [pytest.mark.xfail_if('"__pypy__" in sys.modules')
+
+        metafunc.combine_calls('type_',[
+            ('number', int, marks),
+            ('string', str, marks),
+            ('mapping, dict, marks),
+        ])
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.