Grygorii Iermolenko
59f69dd9e7
Add good talk by Andrew Svetlov
2019-02-15 15:37:18 +02:00
Grygorii Iermolenko
6e1ee0802f
Fix sphinx code-block types for remaining rst docs
2019-02-15 15:10:37 +02:00
Grygorii Iermolenko
5cf58a9ae9
Revert '$' changes to not trigger regendoc
2019-02-15 14:09:37 +02:00
Bruno Oliveira
4bc2f96c93
Remove 'message' parameter docs from assert.rst
...
As per:
https://github.com/pytest-dev/pytest/issues/3974#issuecomment-463462732
Also made the 'match' parameter more prominent
2019-02-14 08:32:49 -02:00
Daniel Hahler
7b91952645
Merge master into features
...
Conflicts:
tox.ini
2019-02-13 17:58:16 +01:00
Grygorii Iermolenko
799bcccd1b
Fix sphinx code-block types (syntax highlighting) in two docs
2019-02-13 17:08:49 +02:00
Bruno Oliveira
82cc3d8cc2
Preparing release version 4.2.1
2019-02-12 20:17:06 +00:00
Kevin J. Foley
aee67bb1a7
Clarify pytest_assertrepr_compare docs per #4759
2019-02-10 08:34:35 -05:00
Bruno Oliveira
7f6108beb1
Add ref docs for junit_family option
2019-02-08 21:44:52 -02:00
Daniel Hahler
fc8800c71f
Merge pull request #4722 from fetzerch/ignore_wildcards
...
Add ability to use globs when using --ignore
2019-02-09 00:11:04 +01:00
Ronny Pfannschmidt
526f4a95cc
Merge pull request #4735 from kohr-h/pytest_plugins_module_name
...
Mention that `pytest_plugins` should not be used as module name
2019-02-07 07:07:58 +01:00
Bruno Oliveira
2f083504ee
Merge pull request #4709 from namurphy/warns-docs
...
Document how to customize test failure message for missing warnings
2019-02-06 20:51:14 -02:00
Holger Kohr
7445b5345f
Mention that `pytest_plugins` should not be used as module name
2019-02-06 21:57:42 +01:00
Christian Fetzer
1876a928d3
Document collect_ignore and collect_ignore_glob in reference
2019-02-06 17:15:30 +01:00
Christian Fetzer
2dc2a19db5
Add ability to exclude files matching glob patterns in conftest.py
...
This adds the `collect_ignore_glob` option for `conftest.py` to allow
Unix-style wildcards for excluding files.
2019-02-06 16:49:43 +01:00
Christian Fetzer
fc5d4654e5
Add ability to exclude files matching glob patterns with --ignore-glob
...
This adds the `--ignore-glob` option to allow Unix-style wildcards so
that `--ignore-glob=integration*` excludes all tests that reside in
files starting with `integration`.
Fixes : #3711
2019-02-06 11:29:30 +01:00
Bruno Oliveira
584c052da4
Fix linting and change False to True as requested in review
2019-02-05 19:04:26 -02:00
Anthony Sottile
2264db7f4a
Merge pull request #4682 from arel/parameterize-conditional-raises-document-only
...
Document parametrizing conditional raises
2019-02-02 13:15:26 -08:00
Nick Murphy
f0ecb25acd
Document custom failure messages for missing warnings
2019-02-01 21:48:29 -05:00
Arel Cordero
7ec1a1407a
Incorporating feedback from asottile
2019-02-02 01:57:17 +00:00
Bruno Oliveira
fa979a4290
Preparing release version 4.2.0
2019-01-30 14:25:38 -02:00
Bruno Oliveira
ade5f2c8c5
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2019-01-29 19:36:56 -02:00
Arel Cordero
8a1afe4213
Including note on using nullcontext in Python 3.7+
2019-01-28 13:31:08 +00:00
Arel Cordero
fd4289dae0
Adding `does_not_raise` to documentation only
2019-01-27 16:42:10 +00:00
Arel Cordero
977adf1354
Improving sphinx docs based on feedback
2019-01-27 16:41:23 +00:00
Arel Cordero
c166b80a8c
Documenting raises/does_not_raise + parametrize
2019-01-27 16:40:49 +00:00
Bruno Oliveira
067f2c6148
Improve pytest.raises 'message' deprecation docs
...
Based on recent discussions in #3974
2019-01-24 20:41:18 -02:00
Bruno Oliveira
daf39112e7
Merge pull request #4091 from nicoddemus/setup-methods-as-fixtures-3094
...
Use fixtures to invoke xunit-style fixtures
2019-01-23 19:23:31 -02:00
Anthony Sottile
92a2c1a9c4
remove and ban py.io.BytesIO, py.process, py.path.local.sysfind
2019-01-21 19:51:16 -08:00
Bruno Oliveira
e2a9aaf24b
Add docs page about plans for dropping py27 and py34
...
Fix #4635
2019-01-14 22:10:15 -02:00
Bruno Oliveira
e48f68953d
Merge pull request #4638 from nicoddemus/release-4.1.1
...
Preparing release version 4.1.1
2019-01-12 12:51:32 -02:00
Bruno Oliveira
25081d8e30
Merge pull request #4570 from nicoddemus/sphinx-removed-in
...
Use sphinx removed in extension in the documentation
2019-01-12 08:34:29 -02:00
Bruno Oliveira
34eeda1c09
Preparing release version 4.1.1
2019-01-12 00:55:12 +00:00
Bruno Oliveira
0f918b1a9d
xunit-style functions and methods are invoked by autouse fixtures
...
Fix #3094 , Fix #517
2019-01-10 12:10:04 -02:00
Bruno Oliveira
9f6d9efc1d
Mention PYTHONPATH semantics in goodpractices.rst
...
Fix #4625
2019-01-09 22:45:09 -02:00
Yoav Caspi
2467831913
rephrase warning section to explain better the issue.
2019-01-09 23:52:08 +02:00
Yoav Caspi
6ee5d431a0
add warning for using non canonical configuration files.
2019-01-06 23:11:24 +02:00
Bruno Oliveira
38adb23bd2
Merge pull request #4600 from nicoddemus/release-4.1.0
...
Release 4.1.0
2019-01-06 13:09:11 -02:00
Bruno Oliveira
e24031fb36
Regendocs again, without hypothesis
2019-01-05 20:42:44 +00:00
Bruno Oliveira
99ef8c6d16
Fix typo in Makefile: PYTEST_ADDOPT -> PYTEST_ADDOPTS
2019-01-05 20:31:01 +00:00
Bruno Oliveira
d7465895d0
Regendoc again
2019-01-05 19:19:40 +00:00
Bruno Oliveira
01151ff566
Add example for -ra usage to the docs
2019-01-05 16:53:12 -02:00
Bruno Oliveira
d0e9b4812f
Regendocs
2019-01-05 16:38:59 -02:00
Bruno Oliveira
9d297c06e8
Preparing release version 4.1.0
2019-01-05 16:38:59 -02:00
Anthony Sottile
e24fdb138d
Merge pull request #4598 from nicoddemus/license-year
...
Update copyright year
2019-01-05 09:09:55 -08:00
Bruno Oliveira
7f671586b0
Update copyright year
2019-01-04 10:37:07 -02:00
David Vo
9e62f9d64e
Fix PEP 565 typo in warnings.rst
2019-01-04 11:50:36 +11:00
Bruno Oliveira
81c2780d2b
Move Node.get_marker and markname deprecations next to the other 4.0 ones
2019-01-02 19:37:17 -02:00
Bruno Oliveira
b39b69a730
Use sphinx-removed-in extension in the documentation
...
Fix #4568
2019-01-02 19:34:46 -02:00
Bruno Oliveira
30c7a7bd69
Merge remote-tracking branch 'upstream/master' into features
2019-01-02 19:16:18 -02:00
Adam Johnson
388aff16c8
Improve detailed summary report docs
...
The existing examples had 0 tests collected so didn't show the actual summary report. Also I added a section explaining the difference between `p` and `P`.
2018-12-29 11:47:39 +00:00
Anthony Sottile
2dc8cc1e48
Remove out of date dependencies list in docs
...
Was scrolling through the docs and noticed this, I figure it's easier to remove this than try and keep it in sync with setup.py
2018-12-25 20:46:48 -05:00
Randy Barlow
b2c4ed9a2b
Remove an extraneous comma from the docs.
...
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
2018-12-21 17:53:28 -05:00
Ronny Pfannschmidt
8f8d3114dd
apply suggested enhancements in deprecations.rst
2018-12-21 14:02:38 +01:00
Ronny Pfannschmidt
64a353f2b6
update deprecation docs
2018-12-21 14:02:38 +01:00
Ronny Pfannschmidt
b258764ffe
fix docs
2018-12-21 14:02:38 +01:00
Hyunchel Kim
ece01b0f56
Update cache documentation example to correctly show cache hit and miss
2018-12-21 04:43:26 +00:00
Bruno Oliveira
c378cb4793
Remove support for applying marks to values in parametrize
...
Fix #3082
2018-12-20 16:16:13 -02:00
Bruno Oliveira
a93f41233a
Raise an error if pytest_plugins is defined in a non-top-level conftest.py file
...
Fix #4548
2018-12-19 18:09:47 -02:00
Bruno Oliveira
9138419379
Remove support for '[pytest]' section in setup.cfg file
...
Fix #3086
2018-12-19 17:43:17 -02:00
Bruno Oliveira
0115766df3
Calling fixtures directly is now an error instead of a warning
...
Fix #4545
2018-12-19 09:26:29 -02:00
Bruno Oliveira
b7e8171cf8
Merge branch 'features' into remove-legacy-warn
2018-12-17 10:37:31 -02:00
Bruno Oliveira
843d00c219
Fix linting
2018-12-17 10:35:17 -02:00
Bruno Oliveira
c6d27d8224
Merge pull request #4555 from nicoddemus/remove-record-xml-pytest-main-str
...
Remove record_xml_property and support for strings in pytest.main()
2018-12-17 10:08:51 -02:00
Bruno Oliveira
84390acccc
Merge pull request #4553 from nicoddemus/junit-durations
...
Rename "junit_time" to "junit_duration_report" option
2018-12-17 10:08:20 -02:00
Kanguros
60773e0a97
Updating markers example to newest pytest version
2018-12-16 21:13:14 +01:00
Bruno Oliveira
a7e401656e
Remove support to pass strings to pytest.main()
...
Fix #3085
2018-12-14 15:45:47 -02:00
Bruno Oliveira
6e1b1abfa7
Remove deprecated record_xml_property
...
Fix #4547
2018-12-14 15:10:08 -02:00
Daniel Hahler
8e287c5c77
Merge master into features
2018-12-14 16:44:43 +01:00
Bruno Oliveira
231863b133
Rename "junit_time" to "junit_duration_report" option
...
Just realized while reading the changelog that "junit_time" is not a very good
name, so I decided to open this PR renaming it to "junit_duration_report" which
I believe conveys the meaning of the option better
2018-12-14 12:56:26 -02:00
Bruno Oliveira
fd48cd57f9
Remove config.warn, Node.warn; pytest_logwarning issues a warning when implemented
...
Fix #3078
2018-12-14 12:50:18 -02:00
Bruno Oliveira
1e80a9cb34
Remove pytest_funcarg__ prefix support for defining fixtures
...
Fix #4543
2018-12-13 21:41:38 -02:00
Bruno Oliveira
6c5a1150d4
Preparing release version 4.0.2
2018-12-13 23:37:51 +00:00
Bruno Oliveira
26d202a7bd
Merge pull request #4529 from aparamon/jxmlunit-call-time
...
Add --junittime=call option
2018-12-13 13:51:06 -02:00
Bruno Oliveira
5b83417afc
Deprecate the 'message' parameter of pytest.raises
...
Fix #3974
2018-12-12 22:26:30 -02:00
Bruno Oliveira
e3d30f8ebf
Remove deprecated PyCollector.makeitem
...
Fix #4535
2018-12-12 14:15:52 -02:00
Andrey Paramonov
ec4507d12a
Fix doc formatting
2018-12-12 14:33:02 +03:00
Andrey Paramonov
b1e766c30e
Update docs
2018-12-12 13:27:44 +03:00
Daniel Hahler
0db5ccb0dd
Merge master into features
2018-12-10 05:42:07 +01:00
Tomer Keren
cb52d17d07
Document doctest fixture pitfalls
2018-12-05 11:25:52 +02:00
Yash Todi
db32949c50
Rectified typo
2018-12-04 19:33:13 +05:30
Anthony Sottile
ae92b8c624
Upgrade sphinx doc requirements
2018-12-03 15:30:45 -08:00
Anthony Sottile
b88c3f8f82
Deprecate pytest.config
2018-12-03 09:01:42 -08:00
Bruno Oliveira
a131f0acf6
Merge pull request #4490 from nicoddemus/remove-cached-setup-add-call
...
Remove cached_setup and Metafunc.addcall
2018-12-01 18:44:51 -02:00
Bruno Oliveira
40b85d7ee8
Remove Metafunc.addcall
...
Fix #3083
2018-12-01 16:41:59 -02:00
Bruno Oliveira
090f7ff449
Remove request.cached_setup
...
Fix #4489
2018-12-01 15:59:44 -02:00
Bruno Oliveira
b05061dcd2
Change deprecation type of --result-log to PytestDeprecationWarning
...
It was decided to deprecate this on a later date (see discussion in #4447 )
2018-12-01 14:29:50 -02:00
Bruno Oliveira
63f38de38e
Merge remote-tracking branch 'upstream/features' into update-deprecations-docs
2018-12-01 14:16:20 -02:00
Anthony Sottile
1bba0a9714
Deprecate `raises(..., 'code(as_a_string)')` / `warns(..., 'code(as_a_string)')
2018-11-29 09:34:51 -08:00
Bruno Oliveira
b73e083d9d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-11-26 12:55:05 -02:00
Anthony Sottile
2eac1bfcb8
Bump pygments-pytest
2018-11-24 17:25:53 -08:00
Anthony Sottile
d219e033e9
Fix rtd by installing pygments-pytest
2018-11-24 14:48:12 -08:00
Anthony Sottile
7015801377
Highlight docs with pygments-pytest
2018-11-23 22:01:30 -08:00
Bruno Oliveira
33b877cc01
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-11-23 23:27:41 -02:00
Daniel Hahler
be3b8fc9c1
Fix warnings summary header appearing twice
...
Ref: https://github.com/pytest-dev/pytest/pull/4450#discussion_r236017645
Ref: https://github.com/pytest-dev/pytest/pull/4399
2018-11-23 22:47:58 +01:00
Bruno Oliveira
16b15af624
Preparing release version 4.0.1
2018-11-23 20:09:57 +00:00
Bruno Oliveira
f987b368e8
Merge pull request #3776 from alysivji/attrs-n-dataclasses
...
Detailed assert failure introspection for attrs and dataclasses objects
2018-11-22 21:25:35 -02:00
Bruno Oliveira
5d2e2377ff
Update deprecations.rst now that we have removed a few features
...
* yield tests
* compat properties
* pytest_namespace
All merciless cut down by Ronny :'(
2018-11-22 20:38:47 -02:00
Anthony Sottile
b3700f61ba
Fix formatting of print() calls
2018-11-22 00:15:14 -08:00
Slam
ee4f8c98a9
Adds note on multiple module marker usage
2018-11-21 14:37:28 +02:00
Bruno Oliveira
c2d6b3524c
Preparing release version 4.0.0
2018-11-13 21:01:51 +00:00
Bruno Oliveira
557cb6cffe
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-11-13 09:01:37 -02:00
Bruno Oliveira
dc20dedbc7
Change RemovedInPytest4Warnings to errors by default
...
To keep existing tests which emit RemovedInPytest4Warnings running, decided
to go with a command line option because:
* Is harder to integrate an ini option with tests which already use an ini file
* It also marks tests which need to be removed/updated in 4.1, when
RemovedInPytest4Warning and related functionality are removed.
Fix #3737
2018-11-12 16:10:57 -02:00
Aly Sivji
1847cc7420
adding docs and cleaning up
2018-11-12 09:28:47 -06:00
Bruno Oliveira
2626bd9afa
Preparing release version 3.10.1
2018-11-11 13:43:04 +00:00
Daniel Hahler
859b322773
doc: improve/simplify doc for breakpoint behavior
2018-11-09 02:03:44 +01:00
Anthony Sottile
db996335c8
Merge pull request #4302 from jdufresne/pypi
...
Update pypi.python.org reference to pypi.org
2018-11-04 17:32:56 -08:00
Jon Dufresne
5e0441d96e
Update pypi.python.org reference to pypi.org
2018-11-04 09:02:54 -08:00
Bruno Oliveira
c2e906ec97
Preparing release version 3.10.0
2018-11-03 13:51:39 +00:00
Bruno Oliveira
1ec6805112
Fix escape in code sample
2018-11-03 13:48:10 +00:00
Bruno Oliveira
6befdf8b46
Merge remote-tracking branch 'upstream/master' into release-3.10.0
2018-11-03 13:42:20 +00:00
Andreu Vallbona Plazas
9871d5ec2d
Updated the talks.rst
...
corrected the target name
2018-11-01 01:24:18 +01:00
Bruno Oliveira
0994829afe
Move pytest talk to the start of the section
2018-10-31 19:35:47 -03:00
Andreu Vallbona Plazas
c31abb1176
Update talks.rst
...
Added the slides of a PyconES 2017 talk about pytest and its plugins ecosystem.
2018-10-31 23:06:44 +01:00
Bruno Oliveira
cc25256982
Fix linting2
2018-10-31 11:05:58 -03:00
Bruno Oliveira
d5b5be6fbe
Fix linting
2018-10-31 10:44:43 -03:00
Brianna Laugher
3b65d190a4
Add docs page discussing flaky tests
2018-10-31 23:45:09 +11:00
Ville Skyttä
22ab737243
Spelling and grammar fixes
2018-10-29 23:45:45 +02:00
Palash Chatterjee
c3acf049bd
Fixes #4255 by adding to the documentation that module names are not regex-escaped
2018-10-28 10:45:34 +05:30
Bernardo Gomes
b0c0911ba3
changed address to pytest-data-dir
2018-10-27 14:31:50 -03:00
Bruno Oliveira
3b7fbcd47f
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-27 14:29:01 -03:00
Bruno Oliveira
96784c2052
Preparing release version 3.9.3
2018-10-27 13:07:54 +00:00
Ronny Pfannschmidt
9fe871016d
Merge pull request #4147 from davidszotten/stepwise
...
Stepwise
2018-10-27 15:05:05 +02:00
Anthony Sottile
2368fbb63c
Apply reorder-python-imports to all files
2018-10-25 00:01:29 -07:00
Andreas Profous
0dd85157ea
Add reference to ``empty_parameter_set_mark`` parametrize doc
2018-10-23 22:03:05 +02:00
Anthony Sottile
799b72cf6f
Merge pull request #4213 from asottile/flake8_master_fixes
...
Fixes for flake8 master
2018-10-22 20:08:38 -07:00
Bruno Oliveira
771e860011
Preparing release version 3.9.2
2018-10-22 21:47:42 +00:00
Anthony Sottile
cb39bd0651
Fixes for flake8 master
2018-10-22 08:50:00 -07:00
Bruno Oliveira
6b126997e1
Remove pytest.config example from skipping at module level docs
2018-10-20 11:28:39 -03:00
Bruno Oliveira
f947cb2613
Merge remote-tracking branch 'upstream/features' into davidszotten/stepwise
2018-10-20 09:18:02 -03:00
Vincent Barbaresi
51d358a7a9
fix typo in tmpdir documentation
2018-10-19 19:22:04 +02:00
Bruno Oliveira
dde147641e
Fix linting
2018-10-19 09:33:51 -03:00
ykantor
0fc1801d0d
Update tmpdir.rst
2018-10-19 05:54:29 +02:00
Bruno Oliveira
8a768b0db0
Merge pull request #4182 from nicoddemus/fix-deprecations-hook-name
...
Fix hook name in deprecations.rst
2018-10-17 16:18:52 -03:00
Bruno Oliveira
ba5a295544
Fix hook name in deprecations.rst
...
As mentioned in https://github.com/pytest-dev/pytest/issues/4128#issuecomment-430690498
2018-10-17 14:53:41 -03:00
Bruno Oliveira
93bdbf7572
Merge pull request #4173 from nicoddemus/warning-docs-update
...
Update warnings docs
2018-10-17 09:24:32 -03:00
Anthony Sottile
ab8907f6f5
s/comparision/comparison/g [ci skip]
2018-10-16 17:23:29 -07:00
Bruno Oliveira
215a2ed3de
Update warnings docs
...
Some points on the document work different in 3.9, plus changed the order
of the sections a bit to make more sense for users reading it for the first time.
2018-10-16 21:00:57 -03:00
Ronny Pfannschmidt
253c5786af
Preparing release version 3.9.1
2018-10-16 22:16:58 +02:00
Bruno Oliveira
2868c31495
Preparing release version 3.9.0
2018-10-15 20:23:30 +00:00
Bruno Oliveira
39a13d7064
Fix tmp_path example in docs
2018-10-15 20:19:15 +00:00
David Szotten
fd66f69c19
draft doc
2018-10-15 20:04:39 +01:00
Bruno Oliveira
9646a1cd7a
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-15 12:55:28 -03:00
Bruno Oliveira
9fb305b17b
Merge pull request #4086 from jeffreyrack/4063-exclude-0-durations
...
Exclude durations that are 0.00 seconds long.
2018-10-13 22:16:04 -03:00
Jeffrey Rackauckas
47f5c29002
Update messaging for --durations when not in verbose mode.
2018-10-13 12:51:04 -07:00
Thomas Hess
91b2797498
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
2018-10-13 20:33:31 +02:00
Bruno Oliveira
29d5849519
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-10-13 08:50:32 -03:00
Jose Carlos Menezes
dbaa9464ba
Update usefixtures documentation
...
Clarifying that it can't be used with fixture functions
2018-10-12 09:45:49 -03:00
Ronny Pfannschmidt
4736b2bdfb
address review comments
2018-10-11 20:48:30 +02:00
Ronny Pfannschmidt
584051aa90
extend docs with basics about tmp_path and tmp_path_facotry
2018-10-11 10:33:59 +02:00