@@ -45,7 +45,7 @@ You can then restrict a test run to only run tests marked with ``webtest``:
45
45
46
46
$ pytest -v -m webtest
47
47
=========================== test session starts ============================
48
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
48
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
49
49
cachedir: $PYTHON_PREFIX/.pytest_cache
50
50
rootdir: $REGENDOC_TMPDIR
51
51
collecting ... collected 4 items / 3 deselected / 1 selected
@@ -60,7 +60,7 @@ Or the inverse, running all tests except the webtest ones:
60
60
61
61
$ pytest -v -m "not webtest"
62
62
=========================== test session starts ============================
63
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
63
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
64
64
cachedir: $PYTHON_PREFIX/.pytest_cache
65
65
rootdir: $REGENDOC_TMPDIR
66
66
collecting ... collected 4 items / 1 deselected / 3 selected
@@ -82,7 +82,7 @@ tests based on their module, class, method, or function name:
82
82
83
83
$ pytest -v test_server.py::TestClass::test_method
84
84
=========================== test session starts ============================
85
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
85
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
86
86
cachedir: $PYTHON_PREFIX/.pytest_cache
87
87
rootdir: $REGENDOC_TMPDIR
88
88
collecting ... collected 1 item
@@ -97,7 +97,7 @@ You can also select on the class:
97
97
98
98
$ pytest -v test_server.py::TestClass
99
99
=========================== test session starts ============================
100
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
100
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
101
101
cachedir: $PYTHON_PREFIX/.pytest_cache
102
102
rootdir: $REGENDOC_TMPDIR
103
103
collecting ... collected 1 item
@@ -112,7 +112,7 @@ Or select multiple nodes:
112
112
113
113
$ pytest -v test_server.py::TestClass test_server.py::test_send_http
114
114
=========================== test session starts ============================
115
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
115
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
116
116
cachedir: $PYTHON_PREFIX/.pytest_cache
117
117
rootdir: $REGENDOC_TMPDIR
118
118
collecting ... collected 2 items
@@ -156,7 +156,7 @@ The expression matching is now case-insensitive.
156
156
157
157
$ pytest -v -k http # running with the above defined example module
158
158
=========================== test session starts ============================
159
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
159
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
160
160
cachedir: $PYTHON_PREFIX/.pytest_cache
161
161
rootdir: $REGENDOC_TMPDIR
162
162
collecting ... collected 4 items / 3 deselected / 1 selected
@@ -171,7 +171,7 @@ And you can also run all tests except the ones that match the keyword:
171
171
172
172
$ pytest -k "not send_http" -v
173
173
=========================== test session starts ============================
174
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
174
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
175
175
cachedir: $PYTHON_PREFIX/.pytest_cache
176
176
rootdir: $REGENDOC_TMPDIR
177
177
collecting ... collected 4 items / 1 deselected / 3 selected
@@ -188,7 +188,7 @@ Or to select "http" and "quick" tests:
188
188
189
189
$ pytest -k "http or quick" -v
190
190
=========================== test session starts ============================
191
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y -- $PYTHON_PREFIX/bin/python
191
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y -- $PYTHON_PREFIX/bin/python
192
192
cachedir: $PYTHON_PREFIX/.pytest_cache
193
193
rootdir: $REGENDOC_TMPDIR
194
194
collecting ... collected 4 items / 2 deselected / 2 selected
@@ -397,7 +397,7 @@ the test needs:
397
397
398
398
$ pytest -E stage2
399
399
=========================== test session starts ============================
400
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y
400
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y
401
401
cachedir: $PYTHON_PREFIX/.pytest_cache
402
402
rootdir: $REGENDOC_TMPDIR
403
403
collected 1 item
@@ -412,7 +412,7 @@ and here is one that specifies exactly the environment needed:
412
412
413
413
$ pytest -E stage1
414
414
=========================== test session starts ============================
415
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y
415
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y
416
416
cachedir: $PYTHON_PREFIX/.pytest_cache
417
417
rootdir: $REGENDOC_TMPDIR
418
418
collected 1 item
@@ -605,7 +605,7 @@ then you will see two tests skipped and two executed tests as expected:
605
605
606
606
$ pytest -rs # this option reports skip reasons
607
607
=========================== test session starts ============================
608
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y
608
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y
609
609
cachedir: $PYTHON_PREFIX/.pytest_cache
610
610
rootdir: $REGENDOC_TMPDIR
611
611
collected 4 items
@@ -622,7 +622,7 @@ Note that if you specify a platform via the marker-command line option like this
622
622
623
623
$ pytest -m linux
624
624
=========================== test session starts ============================
625
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y
625
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y
626
626
cachedir: $PYTHON_PREFIX/.pytest_cache
627
627
rootdir: $REGENDOC_TMPDIR
628
628
collected 4 items / 3 deselected / 1 selected
@@ -686,7 +686,7 @@ We can now use the ``-m option`` to select one set:
686
686
687
687
$ pytest -m interface --tb=short
688
688
=========================== test session starts ============================
689
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y
689
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y
690
690
cachedir: $PYTHON_PREFIX/.pytest_cache
691
691
rootdir: $REGENDOC_TMPDIR
692
692
collected 4 items / 2 deselected / 2 selected
@@ -713,7 +713,7 @@ or to select both "event" and "interface" tests:
713
713
714
714
$ pytest -m "interface or event" --tb=short
715
715
=========================== test session starts ============================
716
- platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0 .x.y
716
+ platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-1 .x.y
717
717
cachedir: $PYTHON_PREFIX/.pytest_cache
718
718
rootdir: $REGENDOC_TMPDIR
719
719
collected 4 items / 1 deselected / 3 selected
0 commit comments