Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
93a68cd
doc(plugin_hooks): Improve documentation for writing plugin hooks.
NiklasMM Jun 28, 2019
789a366
Fix linting
nicoddemus Jun 29, 2019
d4a76a0
doc(plugin_hooks): Improve documentation for writing plugin hoo… (#5517)
nicoddemus Jun 29, 2019
9021194
Apply workaround for multiple short options for Python <= 3.8
nicoddemus Jun 29, 2019
94a05e5
Run py38-xdist as part of the build instead of cron
nicoddemus Jun 29, 2019
497cd87
Apply workaround for multiple short options for Python <= 3.8 (#5526)
nicoddemus Jun 29, 2019
9972c78
update CONTRIBUTING.rst
AmirElkess Jun 30, 2019
e32c903
Update AUTHORS
AmirElkess Jun 30, 2019
0da690c
Update AUTHORS (#5531)
nicoddemus Jun 30, 2019
5d8da88
Merge pull request #5530 from AmirElkess/patch-1
nicoddemus Jun 30, 2019
2d9b432
Add docs about Tidelift and OpenCollective
nicoddemus Jun 29, 2019
fa97911
Added talk about pytest in PyBCN June 2019
avallbona Jul 2, 2019
50b846e
Merge pull request #5538 from avallbona/patch-2
nicoddemus Jul 2, 2019
1b0e8d7
Substituted 'yml' to '.yaml' in relevant files
bazcrown Jul 3, 2019
9677099
Add upcoming trainings
The-Compiler Jul 3, 2019
528ee3e
Add upcoming trainings (#5544)
nicoddemus Jul 3, 2019
2b9522e
remove documentation about setuptools integration Refs #5534
graingert Jul 3, 2019
d74a975
remove documentation about setuptools integration Refs #5534 Fi… (#5546)
nicoddemus Jul 3, 2019
776a632
Merge pull request #5540 from bazcrown/yml2yaml
asottile Jul 3, 2019
b08ae44
Add docs about Tidelift and OpenCollective (#5527)
nicoddemus Jul 4, 2019
caa08eb
Improve quoting in raises match failure message
asottile Jul 4, 2019
95824c5
Improve quoting in raises match failure message (#5553)
nicoddemus Jul 4, 2019
8651d88
Handle xfail(strict=True) properly in --step-wise mode
nicoddemus Jul 4, 2019
b1928f8
Handle xfail(strict=True) properly in --step-wise mode (#5555)
nicoddemus Jul 4, 2019
bb29f31
Preparing release version 5.0.1
nicoddemus Jul 5, 2019
b62b549
Preparing release version 5.0.1 (#5557)
nicoddemus Jul 5, 2019
d7588b8
Merge remote-tracking branch 'upstream/master' into merge-master-into…
nicoddemus Jul 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ jobs:
- env: TOXENV=py37-pluggymaster-xdist
- env: TOXENV=py37-freeze

# Jobs only run via Travis cron jobs (currently daily).
- env: TOXENV=py38-xdist
python: '3.8-dev'
if: type = cron

- stage: baseline
env: TOXENV=py36-xdist
Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Alexander Johnson
Alexei Kozlenok
Allan Feldman
Aly Sivji
Amir Elkess
Anatoly Bubenkoff
Anders Hovmöller
Andras Mitzki
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ with advance notice in the **Deprecations** section of releases.

.. towncrier release notes start

pytest 5.0.1 (2019-07-04)
=========================

Bug Fixes
---------

- `#5479 <https://github.com/pytest-dev/pytest/issues/5479>`_: Improve quoting in ``raises`` match failure message.


- `#5523 <https://github.com/pytest-dev/pytest/issues/5523>`_: Fixed using multiple short options together in the command-line (for example ``-vs``) in Python 3.8+.


- `#5547 <https://github.com/pytest-dev/pytest/issues/5547>`_: ``--step-wise`` now handles ``xfail(strict=True)`` markers properly.



Improved Documentation
----------------------

- `#5517 <https://github.com/pytest-dev/pytest/issues/5517>`_: Improve "Declaring new hooks" section in chapter "Writing Plugins"


pytest 5.0.0 (2019-06-28)
=========================

Expand Down
19 changes: 11 additions & 8 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Short version
#. Follow **PEP-8** for naming and `black <https://github.com/python/black>`_ for formatting.
#. Tests are run using ``tox``::

tox -e linting,py27,py37
tox -e linting,py37

The test environments above are usually enough to cover most cases locally.

Expand Down Expand Up @@ -217,7 +217,9 @@ Here is a simple overview, with pytest-specific bits:
If you need some help with Git, follow this quick start
guide: https://git.wiki.kernel.org/index.php/QuickStart

#. Install `pre-commit <https://pre-commit.com>`_ and its hook on the pytest repo::
#. Install `pre-commit <https://pre-commit.com>`_ and its hook on the pytest repo:

**Note: pre-commit must be installed as admin, as it will not function otherwise**::

$ pip install --user pre-commit
$ pre-commit install
Expand All @@ -237,20 +239,20 @@ Here is a simple overview, with pytest-specific bits:

#. Run all the tests

You need to have Python 2.7 and 3.7 available in your system. Now
You need to have Python 3.7 available in your system. Now
running tests is as simple as issuing this command::

$ tox -e linting,py27,py37
$ tox -e linting,py37

This command will run tests via the "tox" tool against Python 2.7 and 3.7
This command will run tests via the "tox" tool against Python 3.7
and also perform "lint" coding-style checks.

#. You can now edit your local working copy and run the tests again as necessary. Please follow PEP-8 for naming.

You can pass different options to ``tox``. For example, to run tests on Python 2.7 and pass options to pytest
You can pass different options to ``tox``. For example, to run tests on Python 3.7 and pass options to pytest
(e.g. enter pdb on failure) to pytest you can do::

$ tox -e py27 -- --pdb
$ tox -e py37 -- --pdb

Or to only run tests in a particular test module on Python 3.7::

Expand All @@ -266,7 +268,8 @@ Here is a simple overview, with pytest-specific bits:

#. Create a new changelog entry in ``changelog``. The file should be named ``<issueid>.<type>.rst``,
where *issueid* is the number of the issue related to the change and *type* is one of
``bugfix``, ``removal``, ``feature``, ``vendor``, ``doc`` or ``trivial``.
``bugfix``, ``removal``, ``feature``, ``vendor``, ``doc`` or ``trivial``. You may not create a
changelog entry if the change doesn't affect the documented behaviour of Pytest.

#. Add yourself to ``AUTHORS`` file if not there yet, in alphabetical order.

Expand Down
44 changes: 44 additions & 0 deletions OPENCOLLECTIVE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
==============
OpenCollective
==============

pytest has a collective setup at `OpenCollective`_. This document describes how the core team manages
OpenCollective-related activities.

What is it
==========

Open Collective is an online funding platform for open and transparent communities.
It provide tools to raise money and share your finances in full transparency.

It is the platform of choice for individuals and companies that want to make one-time or
monthly donations directly to the project.

Funds
=====

The OpenCollective funds donated to pytest will be used to fund overall maintenance,
local sprints, merchandising (stickers to distribute in conferences for example), and future
gatherings of pytest developers (Sprints).

`Core contributors`_ which are contributing on a continuous basis are free to submit invoices
to bill maintenance hours using the platform. How much each contributor should request is still an
open question, but we should use common sense and trust in the contributors, most of which know
themselves in-person. A good rule of thumb is to bill the same amount as monthly payments
contributors which participate in the `Tidelift`_ subscription. If in doubt, just ask.

Admins
======

A few people have admin access to the OpenCollective dashboard to make changes. Those people
are part of the `@pytest-dev/opencollective-admins`_ team.

`Core contributors`_ interested in helping out with OpenCollective maintenance are welcome! We don't
expect much work here other than the occasional approval of expenses from other core contributors.
Just drop a line to one of the `@pytest-dev/opencollective-admins`_ or use the mailing list.


.. _`OpenCollective`: https://opencollective.com/pytest
.. _`Tidelift`: https://tidelift.com
.. _`core contributors`: https://github.com/orgs/pytest-dev/teams/core/members
.. _`@pytest-dev/opencollective-admins`: https://github.com/orgs/pytest-dev/teams/opencollective-admins/members
3 changes: 3 additions & 0 deletions TIDELIFT.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Tidelift aims to make Open Source sustainable by offering subscriptions to compa
on Open Source packages. This subscription allows it to pay maintainers of those Open Source
packages to aid sustainability of the work.

It is the perfect platform for companies that want to support Open Source packages and at the same
time obtain assurances regarding maintenance, quality and security.

Funds
=====

Expand Down
1 change: 1 addition & 0 deletions doc/en/_templates/globaltoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ <h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
<li><a href="{{ pathto('contributing') }}">Contributing</a></li>
<li><a href="{{ pathto('backwards-compatibility') }}">Backwards Compatibility</a></li>
<li><a href="{{ pathto('py27-py34-deprecation') }}">Python 2.7 and 3.4 Support</a></li>
<li><a href="{{ pathto('sponsor') }}">Sponsor</a></li>
<li><a href="{{ pathto('license') }}">License</a></li>
<li><a href="{{ pathto('contact') }}">Contact Channels</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions doc/en/announce/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release announcements
:maxdepth: 2


release-5.0.1
release-5.0.0
release-4.6.4
release-4.6.3
Expand Down
25 changes: 25 additions & 0 deletions doc/en/announce/release-5.0.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
pytest-5.0.1
=======================================

pytest 5.0.1 has just been released to PyPI.

This is a bug-fix release, being a drop-in replacement. To upgrade::

pip install --upgrade pytest

The full changelog is available at https://docs.pytest.org/en/latest/changelog.html.

Thanks to all who contributed to this release, among them:

* AmirElkess
* Andreu Vallbona Plazas
* Anthony Sottile
* Bruno Oliveira
* Florian Bruhin
* Michael Moore
* Niklas Meinzer
* Thomas Grainger


Happy testing,
The pytest Development Team
4 changes: 2 additions & 2 deletions doc/en/assert.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ you will see the return value of the function call:

$ pytest test_assert1.py
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
collected 1 item
Expand Down Expand Up @@ -186,7 +186,7 @@ if you run this module:

$ pytest test_assert2.py
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
collected 1 item
Expand Down
8 changes: 4 additions & 4 deletions doc/en/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ If you then run it with ``--lf``:

$ pytest --lf
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
collected 50 items / 48 deselected / 2 selected
Expand Down Expand Up @@ -124,7 +124,7 @@ of ``FF`` and dots):

$ pytest --ff
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
collected 50 items
Expand Down Expand Up @@ -256,7 +256,7 @@ You can always peek at the content of the cache using the

$ pytest --cache-show
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
cachedir: $PYTHON_PREFIX/.pytest_cache
Expand Down Expand Up @@ -284,7 +284,7 @@ filtering:

$ pytest --cache-show example/*
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
cachedir: $PYTHON_PREFIX/.pytest_cache
Expand Down
2 changes: 1 addition & 1 deletion doc/en/capture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ of the failing function and hide the other one:

$ pytest
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
collected 2 items
Expand Down
2 changes: 1 addition & 1 deletion doc/en/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Full pytest documentation
projects
faq
contact
tidelift
sponsor

.. only:: html

Expand Down
4 changes: 2 additions & 2 deletions doc/en/doctest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ then you can just invoke ``pytest`` directly:

$ pytest
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
collected 1 item
Expand Down Expand Up @@ -58,7 +58,7 @@ and functions, including from test modules:

$ pytest --doctest-modules
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
platform linux -- Python 3.x.y, pytest-5.x.y, py-1.x.y, pluggy-0.x.y
cachedir: $PYTHON_PREFIX/.pytest_cache
rootdir: $REGENDOC_TMPDIR
collected 2 items
Expand Down
Loading