Bruno Oliveira
37d836d754
Reword docs slightly
2018-02-01 19:34:15 -02:00
feuillemorte
3eb6cad222
#1642 Fix comments
2018-02-01 11:20:37 +03:00
feuillemorte
9f1772e679
#1642 Resolve conflicts
2018-02-01 00:18:28 +03:00
Bruno Oliveira
653abad27b
Mention outcome.force_result() and add link to pluggy's docs
...
Related to #3169
2018-01-31 18:18:15 -02:00
Bruno Oliveira
489e638b4e
Preparing release version 3.4.0
2018-01-30 19:47:56 +00:00
Bruno Oliveira
4c148bd0ef
Fix imports in failure_demo.py
2018-01-30 19:44:06 +00:00
Bruno Oliveira
49773b573f
Merge pull request #3132 from raphaelcastaneda/feature/add-record-xml-attribute
...
implement #3130 - add record_xml_attribute fixture
2018-01-29 15:42:55 -02:00
Bruno Oliveira
aff463a3c4
Merge remote-tracking branch 'upstream/master' into features
2018-01-27 12:28:43 -02:00
Bruno Oliveira
b3247c1d03
Merge pull request #3044 from RonnyPfannschmidt/parameterset-empty-enable-xfail
...
empty parameterset - enable opt to xfail
2018-01-27 12:23:49 -02:00
Bruno Oliveira
169635e889
Move example of empty_parameter_set_mark closer to the options
2018-01-27 11:02:32 -02:00
Ronny Pfannschmidt
77de45cce3
enhance docs for empty_parameter_set_mark according to review comments
2018-01-26 12:01:27 +01:00
Ronny Pfannschmidt
d550c33cd0
s/empty_parameterset/empty_parameter_set_mark
2018-01-26 11:56:24 +01:00
Bruno Oliveira
a58099022a
Merge pull request #3124 from nicoddemus/logging-3013
...
Changes in the logging plugin for 3.4
2018-01-26 08:52:43 -02:00
Ronny Pfannschmidt
8979b2a9d7
document empty_parameterset in customize.rst
2018-01-26 11:26:48 +01:00
Brian Maissy
4285325cb8
Added note that calling pytest.main multiple times from the same process is not recommended because of import caching
2018-01-25 23:07:34 +02:00
feuillemorte
3a004a4507
added rootdir description to customize.rst
2018-01-25 19:46:22 +03:00
Bruno Oliveira
15cbd61159
Change caplog.get_handler(when) to caplog.get_records(when)
...
While updating the docs I noticed that caplog.get_handler() exposes
the underlying Handler object, which I think it is a bit too much
detail at this stage. Update to return the records directly instead.
2018-01-24 19:08:49 -02:00
Bruno Oliveira
2f955e0c99
Update documentation: rewording and move things for better reading flow
2018-01-24 18:42:59 -02:00
Bruno Oliveira
3f5e9ea71e
Fix -o behavior to no longer swallow all remaining options
...
The current behavior was too error-prone because a "-o" option would
swallow all the following non-option parameters:
pytest -o foo=bar path/to/test.py
path/to/test.py would be captured by the -o option, and would fail
because "path/to/test.py" is not in the format "key=value".
2018-01-23 21:19:16 -02:00
Bruno Oliveira
b4e8861aa5
Fix typos
2018-01-23 19:02:32 -02:00
Bruno Oliveira
baa189f5a3
Merge pull request #3131 from soyrice/master
...
Improve readability of Getting Started guide
2018-01-23 17:48:11 -02:00
Raphael Castaneda
a5e60b6a2d
implement #3130 - adding record_xml_attribute fixture
...
update incorrect expected attribute value in test_record_attribute
attr names must be strings
Update CHANGELOG formatting
update usage documentation
Fix versionadded for record_xml_attribute
Indent the xml schema properly inside the warning box in the docs
2018-01-22 15:14:53 -08:00
Brian Maissy
5c0b340a4b
Clarify that warning capturing doesn't change the warning filter by default
2018-01-21 22:43:00 +02:00
Cyrus Maden
0ab57c4139
Typo fix: "handeling" --> "handling"
2018-01-20 11:12:59 -08:00
Bruno Oliveira
27ae270159
Mention in docs that log messages of level WARNING or above are captured
2018-01-20 12:08:51 -02:00
Bruno Oliveira
8f6a5928f7
Add newline before log messages and enable -v output when log_cli is enabled
2018-01-20 12:02:55 -02:00
Bruno Oliveira
6bb739516f
Update logging docs with the new changes in 3.4
...
Ref: #3013
2018-01-20 12:02:54 -02:00
Cyrus Maden
c3d420bf75
Delete .DS_Store
2018-01-19 18:44:46 -08:00
Anders Hovmöller
7ea5a22657
Access captures logs in teardown
2018-01-19 12:42:35 +01:00
Bruno Oliveira
621374679b
Merge pull request #3129 from kimberlythegeek/typo_in_logging_doc
...
Typo in logging doc
2018-01-18 16:40:09 -02:00
Kimberly
e0b63e34fa
fixed typo in logging doc and added fix to changelog
2018-01-18 10:40:18 -07:00
Kate
d8c23fd39b
Fix wrong formatting
2018-01-16 12:36:28 +03:00
Cyrus Maden
f555a3a76c
Update getting started guide
...
Proofread; added intro paragraph under first header to orient new users; fixed grammar errors (switched to active voice, actionable directions, etc) to improve readability
2018-01-15 13:27:10 -08:00
Cyrus Maden
1f4831a23f
Update getting-started.rst
2018-01-15 12:28:21 -08:00
Bruno Oliveira
3181718fe0
Merge pull request #3087 from nicoddemus/deprecation-roadmap
...
Update deprecation/removal docs to point to labels/milestones instead
2018-01-11 11:14:47 -02:00
Bruno Oliveira
2674f352e8
Merge pull request #3091 from nicoddemus/conftest-hooks
...
Document bootstrap and initialization hooks
2018-01-11 11:14:20 -02:00
Per A. Brodtkorb
820ea6d68f
Update Freezing pytest description in simple.rst
...
I have trouble using third party plugins in my frozen program and discovered
that other people have experienced it as well:
https://mail.python.org/pipermail//pytest-dev/2015-June/003015.html
The problem is that the mechanism for plugin discovery used by pytest
(setupttools entry points) doesn't work with frozen executables so pytest
can't find any plugins. The solution seems to be to import the third party
plugins explicitly as shown here:
https://mail.python.org/pipermail//pytest-dev/2015-June/003018.html
This is not mentioned anywhere in the documentaion.
2018-01-10 16:44:26 +01:00
Bruno Oliveira
b68b80aec9
Add new pytest_runtest_logfinish hook
...
Fix #3101
2018-01-09 22:17:39 -02:00
Anthony Sottile
bd1d17e8de
Replace py.std with stdlib imports
2018-01-09 12:44:10 -08:00
Bruno Oliveira
93306f6a5e
Merge remote-tracking branch 'upstream/master' into features
2018-01-09 18:41:00 -02:00
Jon Dufresne
b93aa5e35f
Prefer https://*.readthedocs.io over http://*.rtfd.org
...
- Requests URL using https instead of http
- Avoids unnecessary redirect of *.rtfd.org -> *.readthedocs.io
*.rtfd.org exists as a means for pasting short URLs, which doesn't much
apply for links in documentation.
2018-01-06 08:05:42 -08:00
Bruno Oliveira
cb6b851780
Update deprecation/removal docs to point to labels/milestones instead
...
Using milestones and proper issues are a much saner way to handle these topics
than keeping them in sync in a separate document
2018-01-06 13:48:39 -02:00
Bruno Oliveira
afb8a4e35d
Document bootstrap and initialization hooks
...
Fix #2616
2018-01-06 13:31:38 -02:00
Bruno Oliveira
06a182386b
Merge pull request #3073 from nicoddemus/pytest_runtestloop-docs
...
Add pytest_runtestloop to the docs
2018-01-05 20:35:51 -02:00
Bruno Oliveira
fac07c1b3f
Merge pull request #3076 from pafonta/patch-1
...
[doc] Reword strange sentence on doctest flags
2018-01-05 09:49:54 -02:00
Pierre-Alexandre Fonta
554cb8d09c
Reword strange sentence on doctest flags
2018-01-04 14:47:05 +01:00
Bruno Oliveira
52a7ccef57
Add pytest_runtestloop to the docs
2018-01-03 16:58:57 -02:00
Bruno Oliveira
bd2d0d2c3c
Preparing release version 3.3.2
2017-12-25 20:38:27 +00:00
Ronny Pfannschmidt
afc607cfd8
move node base classes from main to nodes
2017-12-18 11:08:20 +01:00
Austin
70461d1ead
Update parametrize.rst
2017-12-16 09:31:48 -06:00
Austin
d7a76a4d07
Updated for more clarity
...
- Changed original wording for parameterize. Should help be a little more clear
2017-12-16 09:04:18 -06:00
Austin
c90e76c371
Clarifiyng documentation for parameterize
...
- Added snippet dealing with parameterize run order of tests
2017-12-16 08:25:02 -06:00
Bruno Oliveira
7b5d4d01ed
Add param annotations and types to hookspec
...
Also mention which hook to use instead of the deprecated
pytest_cmdline_preparse
Fix #3022
2017-12-12 18:01:31 -02:00
Bruno Oliveira
38fb6aae78
Change capture docs to use namedtuple
2017-12-08 18:34:29 -02:00
Bruno Oliveira
2a111ff700
Preparing release version 3.3.1
2017-12-05 20:41:57 +00:00
Sebastian Rahlf
644fdc5237
Fix broken link to project
...
The plugin has since moved to pytest-dev
2017-11-28 12:22:47 +01:00
Bruno Oliveira
4678cbeb91
Merge remote-tracking branch 'upstream/features'
2017-11-27 19:37:58 -02:00
Bruno Oliveira
6cdd851227
CHANGELOG and docs changes requested during review
2017-11-27 10:19:34 -02:00
Daniel Hahler
d5f038e29a
Fix spelling: s/re-writ/rewrit/g
...
This also fixes "can not" to "cannot" in the "Module already imported so
cannot be rewritten" assertion error.
2017-11-26 20:46:06 +01:00
Bruno Oliveira
aa9a02ec44
Preparing release version 3.3.0
2017-11-23 20:25:36 +00:00
Bruno Oliveira
f50ace7c0a
Merge remote-tracking branch 'upstream/master' into release-3.3.0
2017-11-23 20:20:40 +00:00
Bruno Oliveira
e0d236c031
Remove gendoc normalization for '=' and '_' headers
...
Using the default for non-atty terminals (80) so the new
progress indicator aligns correctly.
2017-11-23 15:33:41 +00:00
Bruno Oliveira
3a5dbabf60
Add tests for progress output and docs for ``console_output_style``
...
Fix #2657
2017-11-21 21:01:51 -02:00
Bruno Oliveira
b0f558da44
Add Future/Past Releases section
2017-11-18 11:57:00 -02:00
Anthony Sottile
219b758949
Add capsysbinary fixture
...
`capsysbinary` works like `capsys` but produces bytes for `readouterr()`.
2017-11-17 09:02:46 -08:00
Bruno Oliveira
6161bcff6e
Merge pull request #2925 from asottile/capfdbinary
...
Add capfdbinary fixture
2017-11-17 08:00:10 -02:00
Bruno Oliveira
e2c59d3282
Change pluggy._CallOutcome to pluggy._Result after update to pluggy-0.5
2017-11-15 14:08:11 -02:00
Bruno Oliveira
f9029f11af
Add Deprecation Roadmap to backward compatibility document
...
We should replace the wiki document to a link to this document now
2017-11-15 13:53:43 -02:00
Bruno Oliveira
a220a40350
Preparing release version 3.2.5
2017-11-15 00:12:42 +00:00
Anthony Sottile
8f90812481
Add capfdbinary fixture
...
`capfdbinary` works like `capfd` but produces bytes for `readouterr()`.
2017-11-14 14:50:00 -08:00
Bruno Oliveira
3b3bf9f53d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2017-11-14 18:42:29 -02:00
Bruno Oliveira
a0ad9e31da
Preparing release version 3.2.4
2017-11-13 20:01:17 +00:00
Bruno Oliveira
983a09a2d4
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2017-11-10 18:33:02 -02:00
Ronny Pfannschmidt
b2b1eb262f
Merge pull request #2906 from nicoddemus/larger-parametrize-section
...
Make the "examples" section more prominent in the docs for parametrize
2017-11-10 10:50:57 +01:00
Ronny Pfannschmidt
9fce430c89
Merge pull request #2907 from nicoddemus/lazy-fixture
...
Mention pytest-lazy-fixture plugin in the proposal for parametrize_with_fixtures
2017-11-10 10:48:48 +01:00
Bruno Oliveira
e114feb458
Mention pytest-lazy-fixture plugin in the proposal for parametrize_with_fixtures
2017-11-09 20:14:24 -02:00
Bruno Oliveira
c09f69df2a
Make the "examples" section more prominent in the docs
...
I spent some time today figuring out why PR #2881 was not showing up
on doc/parametrize... then after some digging even on readthedocs
wondering if the last documentation build had failed, I realized the
docs I was looking for was in doc/example/parametrize instead.
The section that mentions this is very easy to miss, this makes it a
full fledged title and easier to find.
2017-11-09 19:25:30 -02:00
Yorgos Pagles
fad1fbe381
List python 3.6 in the documented supported versions
2017-11-08 18:13:34 +02:00
Franck Michea
802585cb66
Clarify language of proposal for parametrized fixtures
...
This change slightly modifies the language of the proposal document around use of fixture as parameters of pytest.mark.parametrize. When looking for documentation around this, I very quickly scrolled through this document and landed on the last paragraph thinking it was documenting a real function. This change attempts to make it less likely for this to happen.
2017-11-03 22:13:47 +01:00
Bruno Oliveira
f3a119c06a
Merge upstream/master into features
2017-11-03 16:37:18 -02:00
Ronny Pfannschmidt
d00e2da6e9
Merge pull request #2881 from dawran6/2658
...
Document pytest.param
2017-10-30 09:36:33 +01:00
Daw-Ran Liou
af5e9238c8
Document pytest.param
...
Append example for pytest.param in the example/parametrize document.
2017-10-28 14:25:09 -07:00
Stephen Finucane
383239cafc
doc: Include collector config in the skip doc
...
None of the decorators are sufficient to skip an entire file, for
example if the file contain invalid code for a given Python version.
Simply link to details about customizing the collector.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-10-26 17:14:29 +01:00
Bruno Oliveira
0b540f98b1
Merge pull request #2864 from bilderbuchi/fix-1505
...
Introduce a dedicated section about conftest.py
2017-10-24 20:12:46 -02:00
Bruno Oliveira
6821d36ca5
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2017-10-24 19:57:14 -02:00
Bruno Oliveira
b61cbc4fba
Merge pull request #2859 from OwenTuz/issue-2692-document-setup-teardown-mismatch-in-unittest-integration
...
2692.docs document setup/teardown behaviour when using unittest-based su…
2017-10-23 18:35:25 -02:00
Christoph Buchner
e23af009f9
Introduce a dedicated section about conftest.py
...
Also reorganize conftest-related content a bit.
Closes #1505 , closes #1770 .
2017-10-23 22:11:09 +02:00
Pavel Karateev
dc5f33ba5c
Remove typo @ in assignment
2017-10-23 21:39:13 +03:00
Owen Tuz
3cdbb1854f
#2692 : Document setup/teardown behaviour when using unittest-based suites
2017-10-21 23:12:49 +01:00
Bruno Oliveira
4cb60dac3d
Merge pull request #2850 from bilderbuchi/docs-911
...
Add documentation about python -m pytest invocation.
2017-10-18 19:44:52 -02:00
Bruno Oliveira
8c7974af01
Merge pull request #2848 from bilderbuchi/fix-538
...
Clarify the documentation of fixture scopes
2017-10-18 19:18:57 -02:00
Christoph Buchner
46cc9ab77c
Add documentation about python -m pytest invocation.
2017-10-18 21:30:56 +02:00
Christoph Buchner
baadd569e8
Clarify the documentation of fixture scopes. Closes #538 .
2017-10-17 23:42:32 +02:00
Pierre GIRAUD
a4fd5cdcb5
Fix auto-use fixture doc
2017-10-16 10:23:35 +02:00
Семён Марьясин
cfdebb3ba4
Fix typo in parametrization doc
2017-10-16 01:55:30 +03:00
Ronny Pfannschmidt
c750a5beec
Merge pull request #2794 from thisch/catchlog
...
Merge pytest-catchlog plugin
2017-10-12 09:02:46 +02:00
Ronny Pfannschmidt
df37cdf51f
Merge pull request #2808 from georgeyk/allow-module-level-skip
...
Allow module level skip
2017-10-12 06:50:53 +02:00
Thomas Hisch
f3261d9418
Move logging docu into own rst file
...
Remove reference of pytest-catchlog plugin in plugins.rst
2017-10-12 02:19:24 +02:00
Thomas Hisch
502652ff02
Add preliminary documentation for logging-plugin
2017-10-12 02:19:24 +02:00
hugovk
ef732fc51d
Remove code for unsupported Python versions
2017-10-10 08:54:56 +03:00
Xuan Luong
4bc6ecb8a5
Add mention of xpass in skip/xfail documentation
2017-10-05 20:14:45 -04:00
Bruno Oliveira
e7a4d3d8cf
Merge remote-tracking branch 'upstream/master' into features
2017-10-04 17:28:34 -03:00
Bruno Oliveira
6b91bc88de
Preparing release version 3.2.3
2017-10-03 21:42:34 +00:00
George Y. Kussumoto
59f66933cd
Update documentation example of pytest.skip(allow_module_level=True)
2017-10-02 21:26:00 -03:00
George Y. Kussumoto
e4a6e52b81
Update skipping documentation to include usage of allow_module_level kwarg
2017-10-02 21:07:21 -03:00
Bruno Oliveira
3ebfb881c9
Merge remote-tracking branch 'upstream/master' into features
2017-09-18 19:10:31 -03:00
Bruno Oliveira
810320f591
Small fixes to development_guide: title and label names
...
* Fix title to use a proper "title" section marker
* Fix labels by adding a " " after the ":"
* Fix OS labels after obvious mishap
* Sort labels
2017-09-14 19:58:56 -03:00
Bruno Oliveira
25d2acbdb2
Merge pull request #2760 from nicoddemus/labels
...
Add development guide to docs
2017-09-14 19:20:45 -03:00
Bruno Oliveira
52c134aed3
Add development guide to docs
2017-09-13 19:32:40 -03:00
Xuan Luong
696c702da7
Update documentation on multiple calls of metafunc.parametrize
2017-09-10 00:23:23 -04:00
Xuan Luong
15222ceca2
Fix typo in example of passing a callable to markers
2017-09-09 18:22:23 -04:00
Joe Hamman
b2a8e06e4f
add warning to skipping docs re marker inheritance
2017-09-08 12:01:33 -07:00
Bruno Oliveira
9273e11f21
Merge branch 'master' into features
2017-09-07 13:59:10 -03:00
Ronny Pfannschmidt
6967f3070e
Merge pull request #2711 from massich/mimic_raises_signature_in_warns
...
[MRG][feature] Change warns signature to mimic the raises call
2017-09-07 13:19:09 +02:00
Joan Massich
80d165475b
Add documentation
2017-09-07 10:28:52 +02:00
Bruno Oliveira
c52f87ede3
Preparing release version 3.2.2
2017-09-06 21:37:57 +00:00
Xuan Luong
3f8ff7f090
[DOC] Add examples for mark.with_args
2017-09-06 14:26:28 -04:00
Bruno Oliveira
f825b4979b
Merge remote-tracking branch 'upstream/master' into features
2017-09-05 19:44:33 -03:00
Ronny Pfannschmidt
181bd60bf9
Merge pull request #2742 from nicoddemus/resultlog-deprecation
...
Improve user guidance regarding ``--resultlog`` deprecation
2017-09-01 08:29:41 +02:00
Bruno Oliveira
3288c9a110
Improve user guidance regarding ``--resultlog`` deprecation
...
Fix #2739
2017-08-31 19:11:41 -03:00
Bruno Oliveira
709b8b65a4
Merge pull request #2721 from josepht/patch-1
...
Fix typo in goodpractices.rst
2017-08-29 22:08:20 -03:00
Tyler Goodlet
ff35c17ecf
Drop wrapper module; import directly
2017-08-25 11:46:55 -04:00
Joe Talbott
1c891d7d97
Fix typo in goodpractices.rst
2017-08-25 10:01:24 -04:00
Tyler Goodlet
9ab83083d1
Update docs
2017-08-24 16:53:37 -04:00
Joan Massich
657976e98a
update raises documentation regarding regex match
2017-08-22 12:12:48 +02:00
Ronny Pfannschmidt
806d47b4d4
Merge pull request #2691 from anhiga/trivial_error
...
Fixed error in 'Good Practices' code snippet
2017-08-16 09:50:32 +02:00
Bruno Oliveira
bfc9f61482
Update the number of plugins in index.rst
2017-08-15 23:05:23 -03:00
Antonio Hidalgo
2a99d82c3b
Fixed error in 'Good Practices' code snippet
2017-08-16 00:26:14 +02:00
Jesús Espino
dc9154e8ff
Add default values documentation for python_files, python_classes and python_functions
2017-08-12 12:29:13 +02:00
Bruno Oliveira
fd84c886ee
Merge pull request #2671 from nicoddemus/release-3.2.1
...
Release 3.2.1
2017-08-09 17:15:21 -03:00
Felipe Dau
c847b83d56
Use `pytest_collection_modifyitems()` in the run/skip option example
2017-08-09 02:51:07 +00:00
Bruno Oliveira
45d2962e97
Preparing release version 3.2.1
2017-08-08 21:11:11 +00:00
Bruno Oliveira
8b322afcdb
Make generated doc in simple.rst more reliable
...
Sometimes `test_funcfast` would show up in the `setup` step in
the slowest test durations summary.
2017-08-08 18:04:21 -03:00
Bruno Oliveira
37353a854e
Implement suggestions by Raphael
2017-08-04 17:56:13 -03:00
Bruno Oliveira
15cdf137d5
Document which pytest features work with `unittest`
...
Fix #2626
2017-08-04 07:44:04 -03:00
Bruno Oliveira
07dd1ca7b8
Preparing release version 3.2.0
2017-07-30 21:37:18 +00:00
Bruno Oliveira
f1467f8f03
Merge remote-tracking branch 'upstream/master' into features
2017-07-30 18:08:24 -03:00
Bruno Oliveira
e1aed8cb17
Merge pull request #2490 from RonnyPfannschmidt/fix-580
...
Test Outcomes as BaseException - fix #580
2017-07-30 17:38:42 -03:00
Bruno Oliveira
4cd8727379
Merge pull request #2617 from wence-/fix/nondeterministic-fixtures
...
Fix nondeterminism in fixture collection order
2017-07-30 17:17:40 -03:00
Bruno Oliveira
8c2319168a
Rephrase the bit about unittest migration to pytest
2017-07-28 23:15:59 -03:00
Ronny Pfannschmidt
06a49338b2
make Test Outcomes inherit from BaseException instead of exception
...
fixes #580
2017-07-28 15:28:51 +02:00
Bruno Oliveira
7082320f3f
Apply modifications requested in review
2017-07-28 07:55:34 -03:00
Bruno Oliveira
6fe7069cbb
Move historical notes to their own doc
...
Fix #2512
2017-07-27 20:47:12 -03:00
Bruno Oliveira
d46006f791
Fixes in "contact" doc
2017-07-27 19:28:55 -03:00
Bruno Oliveira
f770f16294
Replace deprecated "config.option.<name>" usages from docs
2017-07-27 19:18:44 -03:00
Bruno Oliveira
17c544e793
Introduce new pytest_report_collectionfinish hook
...
Fix #2622
2017-07-27 10:44:29 -03:00
Lawrence Mitchell
f047e078e2
Mention new (py26) ordereddict dependency in changelog and docs
2017-07-26 14:41:10 +01:00
Bruno Oliveira
73c6122f35
Merge remote-tracking branch 'upstream/master' into features
2017-07-24 21:12:51 -03:00
Bruno Oliveira
3d24485cae
Clarify PYTHONPATH changes and ``rootdir`` roles
...
- Also minor adjustments in the docs (wording, formatting, links, etc).
Fix #2589
2017-07-21 07:28:11 -03:00
Bruno Oliveira
7341da1bc1
Introduce pytest.mark.filterwarnings
2017-07-20 22:31:49 -03:00
Bruno Oliveira
d44565f385
Merge remote-tracking branch 'upstream/master' into fix-flake8-errors
2017-07-19 17:57:30 -03:00
Bruno Oliveira
26ee2355d9
Merge remote-tracking branch 'upstream/features' into fix-flake8-errors
2017-07-19 17:09:05 -03:00
Raphael Pierzina
1ac02b8a3b
Add plugin code
2017-07-19 20:15:27 +02:00
Raphael Pierzina
d06d97a7ac
Remove unnecessary comma from docs
2017-07-19 19:42:33 +02:00
Raphael Pierzina
91b4b229aa
Update documentation for testing plugin code
2017-07-19 19:38:21 +02:00
Raphael Pierzina
2840634c2c
Fix typo and improve comment about cookiecutter-template
2017-07-19 19:38:21 +02:00
Bruno Oliveira
2d4f1f022e
Introduce PYTEST_CURRENT_TEST environment variable
...
Fix #2583
2017-07-19 10:01:50 -03:00
Bruno Oliveira
637e566d05
Separate all options for running/selecting tests into sections
2017-07-18 22:50:32 -03:00
Bruno Oliveira
3a1c9c0e45
Clarify in the docs how PYTEST_ADDOPTS and addopts ini option work together
2017-07-18 15:37:01 -03:00
Bruno Oliveira
4fd92ef9ba
Merge branch 'fix-flake8-issues' into features
2017-07-17 21:05:39 -03:00
Ronny Pfannschmidt
1485a3a902
Merge pull request #2566 from jmsdvl/iss2518
...
Detect and warn/ignore local python installations
2017-07-13 10:44:04 +02:00
Bruno Oliveira
e6b9a81ccf
Add a link to our backwards compatibility policy to our side-bar
...
It is important enough that it should be easier to find
2017-07-12 16:22:16 -03:00
John Still
67fca04050
update docs and note; add virtualenv collection tests
2017-07-11 23:14:38 -05:00
Bruno Oliveira
d9aaab7ab2
Merge remote-tracking branch 'upstream/master' into features
2017-07-10 17:51:59 -03:00
V.Kuznetsov
91418eda3b
docs for ini option cache_dir
2017-07-07 13:08:12 +03:00
Ronny Pfannschmidt
ef62b86335
Merge pull request #2492 from kalekundert/features
...
Add support for numpy arrays (and dicts) to approx.
2017-07-06 11:46:51 +02:00
Bruno Oliveira
221f42c5ce
Change --strict help message to clarify it deals with unregistered markers
...
Fix #2444
2017-07-04 20:14:57 -03:00
Bruno Oliveira
b63f6770a1
Preparing release version 3.1.3
2017-07-03 23:29:13 +00:00
Bruno Oliveira
7277fbdb20
Fix SMTP port in fixture docs
...
Also add timeout to avoid regen getting stuck due
to connection problems
Fix #2509
2017-07-03 20:21:41 -03:00
Bruno Oliveira
f2ba8d70b9
Fix typo and add suggestion from review
2017-06-21 09:06:52 -03:00
Bruno Oliveira
afe847ecdc
fixture docs: highlight difference between yield and addfinalizer methods
...
Fix #2508
2017-06-20 23:43:34 -03:00
Kale Kundert
b41852c93b
Use `autofunction` to document approx.
...
It used to be a class, but it's a function now.
2017-06-15 14:52:39 -07:00
Raphael Pierzina
9970dea8c1
Update copyright date in doc pages
2017-06-13 15:00:52 +02:00
Max Moroz
21137cf8c5
Add firstresult=True to the hook docs
2017-06-12 19:45:35 -07:00
Bruno Oliveira
7cbf265bb5
Preparing release version 3.1.2
2017-06-08 17:37:42 -04:00
ApaDoctor
54a90e9555
docs: Create links for objects to show the api
2017-06-06 01:10:32 +02:00
Bruno Oliveira
409d2f1d54
Make it clear that pytest.xfail stops the test
...
Also did a general review of the document to improve the flow
Fix #810
2017-05-31 19:54:01 -03:00
Bruno Oliveira
2fd7626046
Preparing release version 3.1.1
2017-05-30 17:19:34 -04:00
Bruno Oliveira
32e2642233
No longer override existing warning filters during warnings capture
...
Fix #2430
2017-05-30 17:17:36 -03:00
Bruno Oliveira
313a884459
Warn that warning-capture can break existing suites in the docs and CHANGELOG
...
Related to discussion in #2430
2017-05-25 21:19:08 -03:00
Ronny Pfannschmidt
0ea80eb63c
Merge pull request #2428 from The-Compiler/param-id-docs
...
Add docs for id= with pytest.param
2017-05-23 10:30:54 +02:00
Florian Bruhin
d9b93674c3
Make --cache-show output deterministic
...
This makes sure things don't jump around in the regenerated docs.
2017-05-23 08:01:39 +02:00
Florian Bruhin
7d6bde2496
Add docs for id= with pytest.param
2017-05-23 07:57:34 +02:00
Bruno Oliveira
9b48613baa
Preparing release version 3.1.0
2017-05-19 18:12:59 -04:00
Bruno Oliveira
36cf89a2de
Merge remote-tracking branch 'upstream/master' into features
2017-05-19 18:01:56 -04:00
Lev Maximov
598aefc686
small fix in an example from the docs
2017-05-18 21:18:09 +07:00
Bruno Oliveira
7af0e6bda1
Merge pull request #2415 from flub/training
...
Remove past training
2017-05-17 20:57:50 -03:00
Floris Bruynooghe
f7247dc99d
Remove past training
...
Leaving the sidebar as an example for in the future.
2017-05-17 22:47:51 +01:00
Bruno Oliveira
70bcd1fb7b
Add a reference to Python testing book to talks docs
2017-05-17 17:17:19 -03:00
Bruno Oliveira
00e7ee532e
Fix minor regendoc issues
2017-05-15 21:57:04 -03:00
Bruno Oliveira
fe49c78f32
Merge remote-tracking branch 'upstream/master' into release-3.1
2017-05-15 21:56:44 -03:00
Bruno Oliveira
bd708068ab
Merge branch 'features' into regendoc-reduce-version-noise
2017-05-14 14:34:07 -03:00
Ronny Pfannschmidt
03753ca201
intermediate state after attempt with the plain env, DONT MERGE
2017-05-13 13:25:52 +02:00
Ronny Pfannschmidt
d1e44d16e7
regenerate docs from the pytest env
2017-05-12 22:51:20 +02:00
Dmitri Pribysh
2ab8d12fe3
Update changelog and add usage info
2017-05-12 17:48:50 -03:00
Ronny Pfannschmidt
c765fa6d04
add regendoc normaliz for pytest --version
2017-05-12 22:38:50 +02:00
Ronny Pfannschmidt
f1c4e2c032
regendoc: reduce version noise by replacing minor/patch with placeholders
2017-05-12 22:17:40 +02:00
David Giese
52c67af63c
Clarify opening paragraph of parameterization docs
...
- Fix a few small grammar mistakes
- Rewrite a few sentences to make them shorter and easier to read
2017-05-09 10:02:08 -04:00
Bruno Oliveira
f3b359f5b8
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
...
# Conflicts:
# _pytest/capture.py
# _pytest/compat.py
# _pytest/python.py
# testing/python/collect.py
# testing/test_mark.py
2017-05-03 19:04:53 -03:00
Krzysztof Szularz
f0533194ed
Update fixture.rst
...
Remove yet another not needed `request` argument in fixture definition.
2017-04-26 10:31:53 +02:00
Krzysztof Szularz
a9b44c4529
Update docs
...
Remove not needed `request` arg in order to simplify the example.
2017-04-25 16:35:19 +02:00
Bruno Oliveira
90be44c812
Document PYTEST_DONT_REWRITE
...
Fixes #2203
2017-04-19 08:19:19 -03:00
Bruno Oliveira
f2300fbab2
Fix links in docs
2017-04-06 23:29:41 -03:00
Bruno Oliveira
45852386e5
Fix small typo in docs
2017-04-06 23:02:47 -03:00
Bruno Oliveira
5462697924
Small formatting fixes to nose.rst
2017-04-06 23:01:26 -03:00
Skylar Downes
f7caa56a6b
moved documentation of conftest.py hack to nose.rst
2017-04-06 18:01:03 -07:00
Skylar Downes
3aa4fb62d6
Merge branch 'master' into master
2017-04-06 16:35:38 -07:00
Bruno Oliveira
44a3db3dc6
Pin sphinx to 1.4 when generating docs to workaround search issues on RTD
...
Fix #2302
2017-04-06 18:09:01 -03:00
Ronny Pfannschmidt
809c36e1f6
add a changelog note for pytest_namespace
2017-03-28 11:45:06 +02:00
Bruno Oliveira
eabe3eed6b
Add docs for the warnings functionality
2017-03-20 23:35:01 -03:00
Paweł Adamczak
d58bc14645
Added 'Possible exit codes' section to docs ( #2239 )
2017-03-19 18:34:43 +00:00
Ronny Pfannschmidt
e368fb4b29
implement pytest.param
...
this allows a clear addition of parameterization parameters that carry along marks
instead of nesting multiple mark objects and destroying the possibility of creating
function valued parameters,
it just folders everything together into one object carrfying parameters, and the marks.
2017-03-17 16:53:43 +01:00
Bruno Oliveira
75ec893d75
Merge pull request #2297 from nicoddemus/init-files-docs
...
Attempt to clarify the confusion regarding __init__ files and unique test names
2017-03-15 10:53:09 -03:00
Bruno Oliveira
272aba98e2
Mention the src layout as recommended practice
2017-03-14 18:39:02 -03:00
Bruno Oliveira
6c9011c12f
Merge branch 'master' into merge-master-into-features-post-3.0.7
2017-03-14 18:10:23 -03:00
Bruno Oliveira
5056d8cbe8
Merge pull request #2304 from nicoddemus/release-3.0.7
...
Release 3.0.7
2017-03-14 18:03:44 -03:00
Bruno Oliveira
4a9348324d
Add more information to test-layout docs as discussed during PR
2017-03-14 07:59:01 -03:00
Bruno Oliveira
92b49d246e
Clarify that record_xml_property is experimental, not junitxml
...
Related to #2306
2017-03-13 23:04:44 -03:00
Bruno Oliveira
90c934e25e
Include release 3.0.7 announce in index.rst
2017-03-13 18:59:15 -04:00
Bruno Oliveira
d58780f9a6
Update regendoc
2017-03-13 18:41:20 -04:00
Bruno Oliveira
b1ab2ca963
Bump to version 3.0.7 and update CHANGELOG
2017-03-13 18:37:49 -04:00
Bruno Oliveira
1e0cf5ce4d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
...
# Conflicts:
# AUTHORS
# CHANGELOG.rst
# _pytest/pytester.py
2017-03-10 15:54:05 -03:00
Bruno Oliveira
581857aab6
Fix typo
2017-03-09 20:46:22 -03:00
Bruno Oliveira
841f731707
Attempt to clarify the confusion regarding __init__ files and unique test names
...
Fix #529
2017-03-09 20:41:33 -03:00
NODA, Kai
e05ff0338a
assert.rst: typographical correction
2017-03-06 01:01:55 +08:00
Bruno Oliveira
bb5f200ed7
Improve docs for yield-fixture and with statement a bit
...
Fix #2262
2017-02-25 12:06:51 -03:00
Michal Wajszczuk
fb0b90646e
New-style classes implemented for python 2.7 - #2147
2017-02-16 20:28:17 +01:00
Bruno Oliveira
8f98ac5ae8
Fix typo in docs "textures" -> "fixtures"
2017-02-15 13:15:53 -02:00
Ronny Pfannschmidt
231e2f9a90
Merge pull request #2252 from nicoddemus/fixture-visibility-docs
...
Improve pytest_plugins docs
2017-02-15 15:53:30 +01:00
Bruno Oliveira
c4d974460c
Improve pytest_plugins docs
...
As discussed in #2246
2017-02-15 11:57:03 -02:00
Florian Bruhin
91c6bef77a
Add venv to the default norecursedirs
...
venv (without a dot) is commonly used as a name for a virtualenv directory, and
we don't want to collect that.
2017-02-15 14:55:12 +01:00
Floris Bruynooghe
b536fb7ace
Mention next training event.
2017-02-14 11:45:39 +00:00
Ronny Pfannschmidt
713bdc1f9f
merge master into features
2017-01-26 12:00:52 +01:00
Ionel Cristian Mărieș
c8032a9bbb
Fix reference.
2017-01-25 14:44:07 +02:00
Ionel Cristian Mărieș
d98d122e81
Discourage users from using this all the time.
2017-01-25 14:20:38 +02:00
Ronny Pfannschmidt
22da561ae5
fix copy+paste error, its supposed to be 3.0.6
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
449b88c640
rerun regendoc with correct install
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
34b898b47e
generate the release announcement
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
01eaf9db51
fix the xfail docstring typo at the actual docstring + regendoc
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
4d0c635252
regendoc
2017-01-22 18:44:30 +01:00
Bruno Oliveira
61fa91f3d0
Fix marker example on "linux" platform
...
I cheated a little and updated the example output by hand. 😁
Fix #2200
2017-01-17 21:09:04 -02:00
Rutger Prins
46a9861d29
Remove mention of --assert=reinterp in documentation
...
Related to #1940
2017-01-13 22:35:37 +01:00
Peter Heatwole
ef903460b1
Fix broken links
2017-01-02 14:19:49 -08:00
Jakub Wilk
03a7a2cd3e
Fix typos
2016-12-31 19:01:15 +01:00
Bruno Oliveira
402fbe503a
Merge branch 'master' into merge-master-into-features
2016-12-27 23:31:26 -02:00
Bruno Oliveira
a27c824fd0
Merge pull request #2146 from lwm/minor-docs-fixup
...
Fix fixture/parametrize override example.
2016-12-26 20:13:00 -02:00
Luke Murphy
f94189b48b
Fix wrong fixture name. Closes #2143 .
2016-12-20 01:48:32 +01:00
Bruno Oliveira
81c9bdcd0b
Mention that Python also adds CWD to sys.path using python -m
2016-12-10 16:55:04 -02:00
Oscar Hellström
f42a954cb3
Also update yield teardown for Issue #687
2016-12-07 15:08:38 +01:00
Bruno Oliveira
f592c7746a
Regendocs for 3.0.5
2016-12-05 07:22:06 -05:00
Bruno Oliveira
31f114e51f
Add release announcement for 3.0.5
2016-12-05 10:19:27 -02:00
Ismail
1f0401ab62
Fix minor typo
2016-12-02 15:09:38 +00:00
Wheerd
2edfc805af
Added "versionadded" for doctest_encoding ini option to docs.
2016-11-30 18:01:00 +01:00
Manuel Krebber
b7fb9fac91
Fixed the documentation for doctest_encoding.
2016-11-30 14:17:54 +01:00
Manuel Krebber
ed977513ec
Added a console option to specify the encoding to use for doctest files. Defaults to UTF-8.
2016-11-29 12:29:14 +01:00
Duncan Betts
6473c3d87e
Improved description of functionality for Issue #687
2016-11-28 14:30:25 +00:00
Bruno Oliveira
b30a6d22c5
Merge branch 'master' into merge-master-into-features
2016-11-27 17:30:40 -02:00
Bruno Oliveira
788e394c93
Use "inc" instead of "func" in the snipped on README and doc index
...
"inc" reads better, also fixed the line separators so
they have the same size
2016-11-27 15:49:39 -02:00
Luke Murphy
1aa5bfea11
Add `:ref:` targets to `recwarn.rst`.
2016-11-26 18:41:38 +01:00
Ana Vojnovic
2e6a58ab69
Clarify test discovery docs.
2016-11-26 15:21:39 +01:00
Floris Bruynooghe
75740337d1
Merge pull request #2060 from pytest-dev/master
...
Merge master into features due to recent CI updates
2016-11-13 18:18:38 -08:00
Igor Starikov
50328f47db
Docs: Added pytest promotional talk in Russian
2016-11-13 18:04:39 +07:00
Bruno Oliveira
efc54b2e56
Merge branch 'master' into merge-master-features
2016-11-11 18:56:53 -02:00
Bruno Oliveira
ab274299fe
Regen doc for 3.0.4
2016-11-09 16:44:58 -05:00
Bruno Oliveira
ff72db2f1a
Version bump to 3.0.4, CHANGELOG, announcement
2016-11-09 19:38:11 -02:00
Florian Bruhin
382fa231a1
Update "Next Open Trainings"
2016-10-31 06:49:06 +01:00
Ronny Pfannschmidt
b3c337db00
add changelog entry and documentation note about RecordedWarning
2016-10-24 15:28:35 +02:00
Bruno Oliveira
918af99a2a
Remove example of obsolete pytest.main usage with string
2016-10-20 12:30:58 -02:00
Ronny Pfannschmidt
afc1e2b0e1
docs: remove mention of string args to main
...
fixes #2008
string args got deprecated due to the insane amount of edge-cases wrt splitting on windows vs posix
2016-10-18 17:21:40 +02:00
Grigorii Eremeev
65ebc75ee8
Update fixture.rst
...
Removed redundant word
2016-10-05 22:26:13 +03:00
Bruno Oliveira
50b960c1f0
Add note about not monkey-patching builtins ( #1986 )
...
* Add note about not monkey-patching builtins
Related to #1985
* Mention -s as well
2016-10-05 17:57:40 +02:00
Bruno Oliveira
ba6ecc14c8
Include release-3.0.3 into the announce toctree
2016-09-28 17:16:57 -04:00
Bruno Oliveira
41d3b3f4f9
Regendoc for version 3.0.3
2016-09-28 16:36:15 -04:00
Bruno Oliveira
dda17994ec
Prepare for 3.0.3 release
2016-09-28 16:33:38 -04:00
Skylar Downes
3d211da9bd
add existing test suite page to table of contents
2016-09-27 14:01:54 -07:00
Skylar Downes
12ac3c7338
remove existing tests stuff, add link to new page
...
Moved the "Contributing tests to an existing project" section to it's own page.
2016-09-27 13:08:15 -07:00
Skylar Downes
7e2f66adc3
Create existingtestsuite.rst
2016-09-27 12:51:46 -07:00
Bruno Oliveira
19766ef0bc
Add a summary on how to skip all tests in a module in different situations
2016-09-25 23:36:25 -03:00
Bruno Oliveira
94155ee62a
Add a note about pytest.skip not being allowed at module level
2016-09-25 23:36:25 -03:00
mbyt
77d842ceb2
better doc for #1890 based on #1932
2016-09-17 19:58:27 +02:00
Skylar Downes
34117be98b
Update goodpractices.rst
2016-09-15 16:45:35 -07:00
Skylar Downes
330a2f6784
Update getting-started.rst
2016-09-15 16:28:37 -07:00
Skylar Downes
81a733f2dc
add how-to for getting started on existing project
...
ref #1937
2016-09-15 15:09:47 -07:00
Skylar Downes
07ad71e851
clarified purpose of `pip install -e` command
...
ref #1937
2016-09-15 14:55:54 -07:00
Skylar Downes
b4fd74c6ff
add mention of setup.py develop
2016-09-15 14:10:57 -07:00
Skylar Downes
69f72c6f4b
fix typo
2016-09-15 10:49:59 -07:00
Skylar Downes
383fc02ba6
fix spacing
2016-09-15 10:47:16 -07:00
Skylar Downes
d217984129
documenting how to point pytest at local code
...
Related to #1937
2016-09-15 10:46:15 -07:00
Bruno Oliveira
138e255631
Remove duplicated for Metafunc members on docs
...
Fix #1924
2016-09-14 17:11:58 -03:00
Florian Bruhin
8e67dd13e7
Fix link to PDF docs
...
Fixes #1917
2016-09-06 21:17:54 +02:00
Ronny Pfannschmidt
a2b8981b50
docs: remove unused helper script
2016-09-05 21:03:22 +02:00
Ronny Pfannschmidt
e21ae3991d
docs: remove the need for special scripts
...
* import version from pytest since it is importable
* remove makefile bits from legacy hosting
* remove the script to determine the version for legacy hosting
2016-09-05 16:42:33 +02:00
Bruno Oliveira
183f3737d4
Fix reference docs for monkeypatch
...
Fix #1909
2016-09-03 15:47:54 -03:00
Bruno Oliveira
927f411ee2
Fix release 3.0.2 release announcement list of authors
2016-09-01 21:28:30 -03:00
Bruno Oliveira
a9f3053f72
Fix version typo in announce for 3.0.2
2016-09-01 06:59:31 -04:00
Bruno Oliveira
d512e7f26b
Run regendoc for 3.0.2 release
2016-08-31 20:32:05 -04:00
Bruno Oliveira
f985f47a02
Fix reportingdemo call to pytest
2016-08-31 20:30:06 -04:00
Bruno Oliveira
4c45b93007
Changes for 3.0.2 release
2016-08-31 20:28:38 -04:00
mbyt
e43d1174f7
spelling
2016-08-31 22:46:40 +02:00
mbyt
696a9112be
integrating review commets of @nicoddemus
...
plus small scale refactoring
2016-08-31 22:33:47 +02:00