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