Skip to content

Commit

Permalink
Release 1.0.0 (#30)
Browse files Browse the repository at this point in the history
Release version 1.0.0
  • Loading branch information
aklajnert authored Aug 22, 2020
1 parent 7a4a603 commit 7d22227
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 21 deletions.
8 changes: 8 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
History
=======

1.0.0 (2020-08-22)
------------------

Features
~~~~~~~~
* `#29 <https://github.com/aklajnert/pytest-subprocess/pull/29>`_: Remember subprocess calls to check if expected commands were executed.
* `#28 <https://github.com/aklajnert/pytest-subprocess/pull/28>`_: Allow to match a command with variable arguments (non-exact matching).

0.1.5 (2020-06-19)
------------------

Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ it somewhere else.
Non-exact command matching
--------------------------

If you need to catch a command with some non-predictable elements, like path
to randomly-generated file name, you can use ``fake_subprocess.any()`` for
If you need to catch a command with some non-predictable elements, like a path
to a randomly-generated file name, you can use ``fake_subprocess.any()`` for
that purpose. The number of arguments that should be matched can be controlled
by ``min`` and ``max`` arguments. To use ``fake_subprocess.any()`` you need
to define the command as a ``tuple`` or ``list``. The matching will work even
Expand Down Expand Up @@ -299,7 +299,7 @@ Check if process was called

You may want to simply check if a certain command was called, you can do this
by accessing ``fake_process.calls``, where all commands are stored as-called.
You can also use an utility function ``fake_process.call_count()`` to see
You can also use a utility function ``fake_process.call_count()`` to see
how many a command has been called. The latter supports ``fake_process.any()``.

.. code-block:: python
Expand Down
8 changes: 0 additions & 8 deletions changelog.d/feature.65210207.entry.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions changelog.d/feature.7c1a9418.entry.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions changelog.d/releases/6.1.0.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
entries:
feature:
- git_email: github@aklajnert.pl
git_user: Andrzej Klajnert
message: Remember subprocess calls to check if expected commands were executed.
os_user: aklajnert
pr_ids:
- '29'
timestamp: 1598091262
- git_email: github@aklajnert.pl
git_user: Andrzej Klajnert
message: Allow to match a command with variable arguments (non-exact matching).
os_user: aklajnert
pr_ids:
- '28'
timestamp: 1598077558
previous_release: 0.1.5
release_date: '2020-08-22'
release_description: ''
release_version: 1.0.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def read(fname):

setup(
name="pytest-subprocess",
version="0.1.5",
version="1.0.0",
author="Andrzej Klajnert",
author_email="python@aklajnert.pl",
maintainer="Andrzej Klajnert",
Expand Down Expand Up @@ -54,7 +54,7 @@ def read(fname):
packages=find_packages(exclude=["docs", "tests"]),
package_data={"pytest_subprocess": ["py.typed", "core.pyi", "fixtures.pyi",]},
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
Expand Down

0 comments on commit 7d22227

Please sign in to comment.