diff options
author | Ran Benita <ran@unusedvar.com> | 2020-12-12 23:21:28 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-12-12 23:23:19 +0200 |
commit | 54a7356a9fb165d7d3e48153ede01cb62f05ecee (patch) | |
tree | 21aa6a60da2a0dcb45839253f02561accfc2c174 /doc/en/example | |
parent | 683f29f84df61e9dab92970a57190d20ca58385e (diff) | |
download | pytest-54a7356a9fb165d7d3e48153ede01cb62f05ecee.tar.gz |
Merge pull request #8130 from pytest-dev/release-6.2.0
Prepare release 6.2.0
(cherry picked from commit c475106f12ed87fe908544ff383c5205638c086d)
Diffstat (limited to 'doc/en/example')
-rw-r--r-- | doc/en/example/nonpython.rst | 2 | ||||
-rw-r--r-- | doc/en/example/parametrize.rst | 6 | ||||
-rw-r--r-- | doc/en/example/pythoncollection.rst | 6 | ||||
-rw-r--r-- | doc/en/example/reportingdemo.rst | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/doc/en/example/nonpython.rst b/doc/en/example/nonpython.rst index 558c56772..a3477fe1e 100644 --- a/doc/en/example/nonpython.rst +++ b/doc/en/example/nonpython.rst @@ -102,4 +102,4 @@ interesting to just look at the collection tree: <YamlItem hello> <YamlItem ok> - ========================== 2 tests found in 0.12s =========================== + ======================== 2 tests collected in 0.12s ======================== diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index d5a11b451..6e2f53984 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -175,7 +175,7 @@ objects, they are still using the default pytest representation: <Function test_timedistance_v3[forward]> <Function test_timedistance_v3[backward]> - ========================== 8 tests found in 0.12s =========================== + ======================== 8 tests collected in 0.12s ======================== In ``test_timedistance_v3``, we used ``pytest.param`` to specify the test IDs together with the actual data, instead of listing them separately. @@ -252,7 +252,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia <Function test_demo1[advanced]> <Function test_demo2[advanced]> - ========================== 4 tests found in 0.12s =========================== + ======================== 4 tests collected in 0.12s ======================== Note that we told ``metafunc.parametrize()`` that your scenario values should be considered class-scoped. With pytest-2.3 this leads to a @@ -328,7 +328,7 @@ Let's first see how it looks like at collection time: <Function test_db_initialized[d1]> <Function test_db_initialized[d2]> - ========================== 2/2 tests found in 0.12s =========================== + ======================== 2 tests collected in 0.12s ======================== And then when we run the test: diff --git a/doc/en/example/pythoncollection.rst b/doc/en/example/pythoncollection.rst index f7917b790..a6ce2e742 100644 --- a/doc/en/example/pythoncollection.rst +++ b/doc/en/example/pythoncollection.rst @@ -157,7 +157,7 @@ The test collection would look like this: <Function simple_check> <Function complex_check> - ========================== 2 tests found in 0.12s =========================== + ======================== 2 tests collected in 0.12s ======================== You can check for multiple glob patterns by adding a space between the patterns: @@ -220,7 +220,7 @@ You can always peek at the collection tree without running tests like this: <Function test_method> <Function test_anothermethod> - ========================== 3 tests found in 0.12s =========================== + ======================== 3 tests collected in 0.12s ======================== .. _customizing-test-collection: @@ -296,7 +296,7 @@ file will be left out: rootdir: $REGENDOC_TMPDIR, configfile: pytest.ini collected 0 items - ========================== no tests found in 0.12s =========================== + ======================= no tests collected in 0.12s ======================== It's also possible to ignore files based on Unix shell-style wildcards by adding patterns to :globalvar:`collect_ignore_glob`. diff --git a/doc/en/example/reportingdemo.rst b/doc/en/example/reportingdemo.rst index f1b973f3b..6e7dbe496 100644 --- a/doc/en/example/reportingdemo.rst +++ b/doc/en/example/reportingdemo.rst @@ -446,7 +446,7 @@ Here is a nice run of several failures and how ``pytest`` presents things: def test_reinterpret_fails_with_print_for_the_fun_of_it(self): items = [1, 2, 3] - print("items is {!r}".format(items)) + print(f"items is {items!r}") > a, b = items.pop() E TypeError: cannot unpack non-iterable int object |