pytest-subprocess 1.5.3__tar.gz → 1.5.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/HISTORY.rst +250 -232
  2. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/LICENSE +22 -22
  3. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/MANIFEST.in +10 -10
  4. {pytest_subprocess-1.5.3/pytest_subprocess.egg-info → pytest_subprocess-1.5.4}/PKG-INFO +804 -770
  5. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/README.rst +487 -486
  6. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/docs/Makefile +20 -20
  7. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/docs/api.rst +22 -22
  8. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/docs/conf.py +78 -69
  9. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/docs/index.rst +48 -48
  10. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/docs/make.bat +35 -35
  11. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/docs/usage.rst +3 -3
  12. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest.ini +7 -5
  13. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/__init__.py +8 -8
  14. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/asyncio_subprocess.py +7 -7
  15. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/exceptions.py +13 -13
  16. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/fake_popen.py +454 -419
  17. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/fake_process.py +162 -162
  18. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/fixtures.py +15 -15
  19. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/process_dispatcher.py +280 -252
  20. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/process_recorder.py +63 -63
  21. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/types.py +20 -20
  22. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/utils.py +191 -169
  23. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4/pytest_subprocess.egg-info}/PKG-INFO +804 -770
  24. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/SOURCES.txt +1 -0
  25. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/setup.cfg +18 -18
  26. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/setup.py +82 -80
  27. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/conftest.py +13 -13
  28. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/example_script.py +19 -19
  29. pytest_subprocess-1.5.4/tests/imported_popen_fixture.py +6 -0
  30. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/test_asyncio.py +504 -410
  31. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/test_examples.py +74 -61
  32. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/test_subprocess.py +1403 -1282
  33. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/test_typing.py +10 -10
  34. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/test_utils.py +229 -182
  35. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess/py.typed +0 -0
  36. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/dependency_links.txt +0 -0
  37. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/entry_points.txt +0 -0
  38. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/requires.txt +0 -0
  39. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/pytest_subprocess.egg-info/top_level.txt +0 -0
  40. {pytest_subprocess-1.5.3 → pytest_subprocess-1.5.4}/tests/__init__.py +0 -0
@@ -1,232 +1,250 @@
1
- History
2
- =======
3
-
4
- 1.5.3 (2025-01-04)
5
- ------------------
6
-
7
- Features
8
- ~~~~~~~~
9
- * `#171 <https://github.com/aklajnert/pytest-subprocess/pull/171>`_, `#178 <https://github.com/aklajnert/pytest-subprocess/pull/178>`_: Allow to access keyword arguments passed to Popen.
10
-
11
- Bug fixes
12
- ~~~~~~~~~
13
- * `#180 <https://github.com/aklajnert/pytest-subprocess/pull/180>`_: Fixed an incorrect wait timeout calculation.
14
- * `#170 <https://github.com/aklajnert/pytest-subprocess/pull/170>`_: Wrapped ProcessDispatcher.dispatch into FakePopenWrapper as it was causing TypeError when Popen is used as a type.
15
- * `#169 <https://github.com/aklajnert/pytest-subprocess/pull/169>`_: Get rid of using thread in AsyncFakePopen as it causes thread.join() to hang indefinitely.
16
-
17
- 1.5.2 (2024-07-24)
18
- ------------------
19
-
20
- Bug fixes
21
- ~~~~~~~~~
22
- * `#162 <https://github.com/aklajnert/pytest-subprocess/pull/162>`_: Include tests (and docs) and sdist correctly, and stop installing them to site-packages.
23
-
24
- Other changes
25
- ~~~~~~~~~~~~~
26
- * `#163 <https://github.com/aklajnert/pytest-subprocess/pull/163>`_: Add support for Python 3.12.
27
-
28
- 1.5.1 (2024-07-23)
29
- ------------------
30
-
31
- Other changes
32
- ~~~~~~~~~~~~~
33
- * `#160 <https://github.com/aklajnert/pytest-subprocess/pull/160>`_: Changed pytest entrypoint to avoid error while loading plugin with `-p` argument.
34
- * `#128 <https://github.com/aklajnert/pytest-subprocess/pull/128>`_: Add `tests` directory to sdist.
35
-
36
- 1.5.0 (2023-01-28)
37
- ------------------
38
-
39
- Features
40
- ~~~~~~~~
41
- * `#109 <https://github.com/aklajnert/pytest-subprocess/pull/109>`_: Match also `os.PathLike`.
42
- * `#105 <https://github.com/aklajnert/pytest-subprocess/pull/105>`_: Add program matcher.
43
-
44
- Other changes
45
- ~~~~~~~~~~~~~
46
- * `#110 <https://github.com/aklajnert/pytest-subprocess/pull/110>`_: Produce TypeError on Win Py<3.8 for Path args.
47
-
48
- 1.4.2 (2022-10-02)
49
- ------------------
50
-
51
- Features
52
- ~~~~~~~~
53
- * `#87 <https://github.com/aklajnert/pytest-subprocess/pull/87>`_: Add support for Python 3.11.
54
- * `#80 <https://github.com/aklajnert/pytest-subprocess/pull/80>`_, `#86 <https://github.com/aklajnert/pytest-subprocess/pull/86>`_: The `register()` method returns an auxiliary object that will contain all matching `FakePopen` instances.
55
-
56
- Bug fixes
57
- ~~~~~~~~~
58
- * `#93 <https://github.com/aklajnert/pytest-subprocess/pull/93>`_: Raise callback exceptions on `communicate()` calls.
59
-
60
- Other changes
61
- ~~~~~~~~~~~~~
62
- * `#97 <https://github.com/aklajnert/pytest-subprocess/pull/97>`_: Fixed warnings in tests, treat warnings as errors.
63
- * `#91 <https://github.com/aklajnert/pytest-subprocess/pull/91>`_: Use `sys.executable` instead just `"python"` in tests while invoking python subprocess.
64
- * `#90 <https://github.com/aklajnert/pytest-subprocess/pull/90>`_: Fix documentation build, add CI check for it.
65
-
66
- 1.4.1 (2022-02-09)
67
- ------------------
68
-
69
- Other changes
70
- ~~~~~~~~~~~~~
71
- * `#74 <https://github.com/aklajnert/pytest-subprocess/pull/74>`_: Add ``fp`` alias for the fixture, and ``register`` for the ``regisiter_subprocess``.
72
-
73
- 1.4.0 (2022-01-23)
74
- ------------------
75
-
76
- Features
77
- ~~~~~~~~
78
- * `#71 <https://github.com/aklajnert/pytest-subprocess/pull/71>`_: Add support for stdin with asyncio.
79
-
80
- Bug fixes
81
- ~~~~~~~~~
82
- * `#68 <https://github.com/aklajnert/pytest-subprocess/pull/68>`_: Make `stdout` and `stderr` an `asyncio.StreamReader` instance when using asyncio functions.
83
- * `#63 <https://github.com/aklajnert/pytest-subprocess/pull/63>`_, `#67 <https://github.com/aklajnert/pytest-subprocess/pull/67>`_: Add missing items to `asyncio.subprocess`.
84
-
85
- Other changes
86
- ~~~~~~~~~~~~~
87
- * `#69 <https://github.com/aklajnert/pytest-subprocess/pull/69>`_: Extracted code into separate files to improve navigation.
88
-
89
- 1.3.2 (2021-11-07)
90
- ------------------
91
-
92
- Bug fixes
93
- ~~~~~~~~~
94
- * `#61 <https://github.com/aklajnert/pytest-subprocess/pull/61>`_: Fixed behavior of ``asyncio.create_subproess_exec()``.
95
-
96
- 1.3.1 (2021-11-01)
97
- ------------------
98
-
99
- Bug fixes
100
- ~~~~~~~~~
101
- * `#58 <https://github.com/aklajnert/pytest-subprocess/pull/58>`_: Correctly handle file stream output.
102
-
103
- 1.3.0 (2021-10-24)
104
- ------------------
105
-
106
- Features
107
- ~~~~~~~~
108
- * `#55 <https://github.com/aklajnert/pytest-subprocess/pull/55>`_: Add support for ``terminate()``, ``kill()``, ``send_signal()``.
109
-
110
- 1.2.0 (2021-10-09)
111
- ------------------
112
-
113
- Features
114
- ~~~~~~~~
115
- * `#49 <https://github.com/aklajnert/pytest-subprocess/pull/49>`_, `#52 <https://github.com/aklajnert/pytest-subprocess/pull/52>`_: Add support for ``asyncio``.
116
-
117
- Other changes
118
- ~~~~~~~~~~~~~
119
- * `#50 <https://github.com/aklajnert/pytest-subprocess/pull/50>`_: Change docs theme.
120
-
121
- 1.1.2 (2021-07-17)
122
- ------------------
123
-
124
- Bug fixes
125
- ~~~~~~~~~
126
- * `#47 <https://github.com/aklajnert/pytest-subprocess/pull/47>`_: Prevent `allow_unregistered()` and `keep_last_process()` from affecting other tests.
127
-
128
- 1.1.1 (2021-06-18)
129
- ------------------
130
-
131
- Bug fixes
132
- ~~~~~~~~~
133
- * `#43 <https://github.com/aklajnert/pytest-subprocess/pull/43>`_: Wait for callback thread to finish when calling ``communicate()``.
134
-
135
- Other changes
136
- ~~~~~~~~~~~~~
137
- * `#42 <https://github.com/aklajnert/pytest-subprocess/pull/42>`_: Fix type annotations for `register_subprocess()`.
138
-
139
- 1.1.0 (2021-04-18)
140
- ------------------
141
-
142
- Bug fixes
143
- ~~~~~~~~~
144
- * `#37 <https://github.com/aklajnert/pytest-subprocess/pull/37>`_: Preserve original command in `proc.args` to prevent leaking the internal `Command` type.
145
-
146
- Other changes
147
- ~~~~~~~~~~~~~
148
- * `#38 <https://github.com/aklajnert/pytest-subprocess/pull/38>`_: Switched CI from Azure Pipelines to GitHub Actions.
149
- * `#35 <https://github.com/aklajnert/pytest-subprocess/pull/35>`_: Drop support for python 3.4 and 3.5. Move type annotations from `.pyi` files into sources.
150
-
151
- 1.0.1 (2021-03-20)
152
- ------------------
153
-
154
- Bug fixes
155
- ~~~~~~~~~
156
- * `#34 <https://github.com/aklajnert/pytest-subprocess/pull/34>`_: Prevent appending newlines to outputs unless defined as list/tuple.
157
-
158
- Other changes
159
- ~~~~~~~~~~~~~
160
- * `#32 <https://github.com/aklajnert/pytest-subprocess/pull/32>`_: Make the ``Command`` class iterable.
161
-
162
- 1.0.0 (2020-08-22)
163
- ------------------
164
-
165
- Features
166
- ~~~~~~~~
167
- * `#29 <https://github.com/aklajnert/pytest-subprocess/pull/29>`_: Remember subprocess calls to check if expected commands were executed.
168
- * `#28 <https://github.com/aklajnert/pytest-subprocess/pull/28>`_: Allow to match a command with variable arguments (non-exact matching).
169
-
170
- 0.1.5 (2020-06-19)
171
- ------------------
172
-
173
- Bug fixes
174
- ~~~~~~~~~
175
- * `#26 <https://github.com/aklajnert/pytest-subprocess/pull/26>`_: `encoding` and `errors` arguments will properly trigger `text` mode.
176
-
177
- 0.1.4 (2020-04-28)
178
- ------------------
179
-
180
- Bug fixes
181
- ~~~~~~~~~
182
- * `#22 <https://github.com/aklajnert/pytest-subprocess/pull/22>`_: The `returncode` will not be ignored when `callback` is used.
183
- * `#21 <https://github.com/aklajnert/pytest-subprocess/pull/21>`_: The exception raised from callback will take precedence over those from subprocess.
184
- * `#20 <https://github.com/aklajnert/pytest-subprocess/pull/20>`_: Registering process will be now consistent regardless of the command type.
185
- * `#19 <https://github.com/aklajnert/pytest-subprocess/pull/19>`_: Fixed crash for stderr redirect with an empty stream definition.
186
-
187
- 0.1.3 (2020-03-04)
188
- ------------------
189
-
190
- Features
191
- ~~~~~~~~
192
- * `#13 <https://github.com/aklajnert/pytest-subprocess/pull/13>`_: Allow passing keyword arguments into callbacks.
193
-
194
- Bug fixes
195
- ~~~~~~~~~
196
- * `#12 <https://github.com/aklajnert/pytest-subprocess/pull/12>`_: Properly raise exceptions from callback functions.
197
-
198
- Documentation changes
199
- ~~~~~~~~~~~~~~~~~~~~~
200
- * `#15 <https://github.com/aklajnert/pytest-subprocess/pull/15>`_: Add documentation chapter about the callback functions.
201
-
202
- 0.1.2 (2020-01-17)
203
- ------------------
204
-
205
- Features
206
- ~~~~~~~~
207
- * `#3 <https://github.com/aklajnert/pytest-subprocess/pull/3>`_: Add basic support for process input.
208
-
209
- Bug fixes
210
- ~~~~~~~~~
211
- * `#5 <https://github.com/aklajnert/pytest-subprocess/pull/5>`_: Make ``wait()`` method to raise ``TimeoutError`` after the desired time will elapse.
212
-
213
- Documentation changes
214
- ~~~~~~~~~~~~~~~~~~~~~
215
- * `#7 <https://github.com/aklajnert/pytest-subprocess/pull/7>`_, `#8 <https://github.com/aklajnert/pytest-subprocess/pull/8>`_, `#9 <https://github.com/aklajnert/pytest-subprocess/pull/9>`_: Create Sphinx documentation.
216
-
217
- Other changes
218
- ~~~~~~~~~~~~~
219
- * `#10 <https://github.com/aklajnert/pytest-subprocess/pull/10>`_: Switch from ``tox`` to ``nox`` for running tests and tasks.
220
- * `#4 <https://github.com/aklajnert/pytest-subprocess/pull/4>`_: Add classifier for Python 3.9. Update CI config to test also on that interpreter version.
221
-
222
- 0.1.1 (2019-11-24)
223
- ------------------
224
-
225
- Other changes
226
- ~~~~~~~~~~~~~
227
- * `#1 <https://github.com/aklajnert/pytest-subprocess/pull/1>`_, `#2 <https://github.com/aklajnert/pytest-subprocess/pull/2>`_: Enable support for Python 3.4, add CI tests for that version.
228
-
229
- 0.1.0 (2019-11-23)
230
- ------------------
231
-
232
- Initial release
1
+ History
2
+ =======
3
+
4
+ 1.5.4 (2026-03-21)
5
+ ------------------
6
+
7
+ Features
8
+ ~~~~~~~~
9
+ * `#103 <https://github.com/aklajnert/pytest-subprocess/pull/103>`_: Improve matching commands that contain quoted arguments.
10
+
11
+ Bug fixes
12
+ ~~~~~~~~~
13
+ * `#192 <https://github.com/aklajnert/pytest-subprocess/pull/192>`_: Fix ResourceWarning for unclosed file handles in test_universal_newlines and test_text by explicitly closing process.stdout after reading, preventing intermittent failures on Python 3.12+.
14
+ * `#196 <https://github.com/aklajnert/pytest-subprocess/pull/196>`_: Handle stderr=STDOUT when stdout is a file handle.
15
+ * `#194 <https://github.com/aklajnert/pytest-subprocess/pull/194>`_: Patch imported `subprocess.Popen` aliases.
16
+ * `#186 <https://github.com/aklajnert/pytest-subprocess/pull/186>`_: Support file handles in stdout and stderr.
17
+
18
+ Other changes
19
+ ~~~~~~~~~~~~~
20
+ * `#197 <https://github.com/aklajnert/pytest-subprocess/pull/197>`_: Officially support Python 3.14 and 3.15.
21
+
22
+ 1.5.3 (2025-01-04)
23
+ ------------------
24
+
25
+ Features
26
+ ~~~~~~~~
27
+ * `#171 <https://github.com/aklajnert/pytest-subprocess/pull/171>`_, `#178 <https://github.com/aklajnert/pytest-subprocess/pull/178>`_: Allow to access keyword arguments passed to Popen.
28
+
29
+ Bug fixes
30
+ ~~~~~~~~~
31
+ * `#180 <https://github.com/aklajnert/pytest-subprocess/pull/180>`_: Fixed an incorrect wait timeout calculation.
32
+ * `#170 <https://github.com/aklajnert/pytest-subprocess/pull/170>`_: Wrapped ProcessDispatcher.dispatch into FakePopenWrapper as it was causing TypeError when Popen is used as a type.
33
+ * `#169 <https://github.com/aklajnert/pytest-subprocess/pull/169>`_: Get rid of using thread in AsyncFakePopen as it causes thread.join() to hang indefinitely.
34
+
35
+ 1.5.2 (2024-07-24)
36
+ ------------------
37
+
38
+ Bug fixes
39
+ ~~~~~~~~~
40
+ * `#162 <https://github.com/aklajnert/pytest-subprocess/pull/162>`_: Include tests (and docs) and sdist correctly, and stop installing them to site-packages.
41
+
42
+ Other changes
43
+ ~~~~~~~~~~~~~
44
+ * `#163 <https://github.com/aklajnert/pytest-subprocess/pull/163>`_: Add support for Python 3.12.
45
+
46
+ 1.5.1 (2024-07-23)
47
+ ------------------
48
+
49
+ Other changes
50
+ ~~~~~~~~~~~~~
51
+ * `#160 <https://github.com/aklajnert/pytest-subprocess/pull/160>`_: Changed pytest entrypoint to avoid error while loading plugin with `-p` argument.
52
+ * `#128 <https://github.com/aklajnert/pytest-subprocess/pull/128>`_: Add `tests` directory to sdist.
53
+
54
+ 1.5.0 (2023-01-28)
55
+ ------------------
56
+
57
+ Features
58
+ ~~~~~~~~
59
+ * `#109 <https://github.com/aklajnert/pytest-subprocess/pull/109>`_: Match also `os.PathLike`.
60
+ * `#105 <https://github.com/aklajnert/pytest-subprocess/pull/105>`_: Add program matcher.
61
+
62
+ Other changes
63
+ ~~~~~~~~~~~~~
64
+ * `#110 <https://github.com/aklajnert/pytest-subprocess/pull/110>`_: Produce TypeError on Win Py<3.8 for Path args.
65
+
66
+ 1.4.2 (2022-10-02)
67
+ ------------------
68
+
69
+ Features
70
+ ~~~~~~~~
71
+ * `#87 <https://github.com/aklajnert/pytest-subprocess/pull/87>`_: Add support for Python 3.11.
72
+ * `#80 <https://github.com/aklajnert/pytest-subprocess/pull/80>`_, `#86 <https://github.com/aklajnert/pytest-subprocess/pull/86>`_: The `register()` method returns an auxiliary object that will contain all matching `FakePopen` instances.
73
+
74
+ Bug fixes
75
+ ~~~~~~~~~
76
+ * `#93 <https://github.com/aklajnert/pytest-subprocess/pull/93>`_: Raise callback exceptions on `communicate()` calls.
77
+
78
+ Other changes
79
+ ~~~~~~~~~~~~~
80
+ * `#97 <https://github.com/aklajnert/pytest-subprocess/pull/97>`_: Fixed warnings in tests, treat warnings as errors.
81
+ * `#91 <https://github.com/aklajnert/pytest-subprocess/pull/91>`_: Use `sys.executable` instead just `"python"` in tests while invoking python subprocess.
82
+ * `#90 <https://github.com/aklajnert/pytest-subprocess/pull/90>`_: Fix documentation build, add CI check for it.
83
+
84
+ 1.4.1 (2022-02-09)
85
+ ------------------
86
+
87
+ Other changes
88
+ ~~~~~~~~~~~~~
89
+ * `#74 <https://github.com/aklajnert/pytest-subprocess/pull/74>`_: Add ``fp`` alias for the fixture, and ``register`` for the ``regisiter_subprocess``.
90
+
91
+ 1.4.0 (2022-01-23)
92
+ ------------------
93
+
94
+ Features
95
+ ~~~~~~~~
96
+ * `#71 <https://github.com/aklajnert/pytest-subprocess/pull/71>`_: Add support for stdin with asyncio.
97
+
98
+ Bug fixes
99
+ ~~~~~~~~~
100
+ * `#68 <https://github.com/aklajnert/pytest-subprocess/pull/68>`_: Make `stdout` and `stderr` an `asyncio.StreamReader` instance when using asyncio functions.
101
+ * `#63 <https://github.com/aklajnert/pytest-subprocess/pull/63>`_, `#67 <https://github.com/aklajnert/pytest-subprocess/pull/67>`_: Add missing items to `asyncio.subprocess`.
102
+
103
+ Other changes
104
+ ~~~~~~~~~~~~~
105
+ * `#69 <https://github.com/aklajnert/pytest-subprocess/pull/69>`_: Extracted code into separate files to improve navigation.
106
+
107
+ 1.3.2 (2021-11-07)
108
+ ------------------
109
+
110
+ Bug fixes
111
+ ~~~~~~~~~
112
+ * `#61 <https://github.com/aklajnert/pytest-subprocess/pull/61>`_: Fixed behavior of ``asyncio.create_subproess_exec()``.
113
+
114
+ 1.3.1 (2021-11-01)
115
+ ------------------
116
+
117
+ Bug fixes
118
+ ~~~~~~~~~
119
+ * `#58 <https://github.com/aklajnert/pytest-subprocess/pull/58>`_: Correctly handle file stream output.
120
+
121
+ 1.3.0 (2021-10-24)
122
+ ------------------
123
+
124
+ Features
125
+ ~~~~~~~~
126
+ * `#55 <https://github.com/aklajnert/pytest-subprocess/pull/55>`_: Add support for ``terminate()``, ``kill()``, ``send_signal()``.
127
+
128
+ 1.2.0 (2021-10-09)
129
+ ------------------
130
+
131
+ Features
132
+ ~~~~~~~~
133
+ * `#49 <https://github.com/aklajnert/pytest-subprocess/pull/49>`_, `#52 <https://github.com/aklajnert/pytest-subprocess/pull/52>`_: Add support for ``asyncio``.
134
+
135
+ Other changes
136
+ ~~~~~~~~~~~~~
137
+ * `#50 <https://github.com/aklajnert/pytest-subprocess/pull/50>`_: Change docs theme.
138
+
139
+ 1.1.2 (2021-07-17)
140
+ ------------------
141
+
142
+ Bug fixes
143
+ ~~~~~~~~~
144
+ * `#47 <https://github.com/aklajnert/pytest-subprocess/pull/47>`_: Prevent `allow_unregistered()` and `keep_last_process()` from affecting other tests.
145
+
146
+ 1.1.1 (2021-06-18)
147
+ ------------------
148
+
149
+ Bug fixes
150
+ ~~~~~~~~~
151
+ * `#43 <https://github.com/aklajnert/pytest-subprocess/pull/43>`_: Wait for callback thread to finish when calling ``communicate()``.
152
+
153
+ Other changes
154
+ ~~~~~~~~~~~~~
155
+ * `#42 <https://github.com/aklajnert/pytest-subprocess/pull/42>`_: Fix type annotations for `register_subprocess()`.
156
+
157
+ 1.1.0 (2021-04-18)
158
+ ------------------
159
+
160
+ Bug fixes
161
+ ~~~~~~~~~
162
+ * `#37 <https://github.com/aklajnert/pytest-subprocess/pull/37>`_: Preserve original command in `proc.args` to prevent leaking the internal `Command` type.
163
+
164
+ Other changes
165
+ ~~~~~~~~~~~~~
166
+ * `#38 <https://github.com/aklajnert/pytest-subprocess/pull/38>`_: Switched CI from Azure Pipelines to GitHub Actions.
167
+ * `#35 <https://github.com/aklajnert/pytest-subprocess/pull/35>`_: Drop support for python 3.4 and 3.5. Move type annotations from `.pyi` files into sources.
168
+
169
+ 1.0.1 (2021-03-20)
170
+ ------------------
171
+
172
+ Bug fixes
173
+ ~~~~~~~~~
174
+ * `#34 <https://github.com/aklajnert/pytest-subprocess/pull/34>`_: Prevent appending newlines to outputs unless defined as list/tuple.
175
+
176
+ Other changes
177
+ ~~~~~~~~~~~~~
178
+ * `#32 <https://github.com/aklajnert/pytest-subprocess/pull/32>`_: Make the ``Command`` class iterable.
179
+
180
+ 1.0.0 (2020-08-22)
181
+ ------------------
182
+
183
+ Features
184
+ ~~~~~~~~
185
+ * `#29 <https://github.com/aklajnert/pytest-subprocess/pull/29>`_: Remember subprocess calls to check if expected commands were executed.
186
+ * `#28 <https://github.com/aklajnert/pytest-subprocess/pull/28>`_: Allow to match a command with variable arguments (non-exact matching).
187
+
188
+ 0.1.5 (2020-06-19)
189
+ ------------------
190
+
191
+ Bug fixes
192
+ ~~~~~~~~~
193
+ * `#26 <https://github.com/aklajnert/pytest-subprocess/pull/26>`_: `encoding` and `errors` arguments will properly trigger `text` mode.
194
+
195
+ 0.1.4 (2020-04-28)
196
+ ------------------
197
+
198
+ Bug fixes
199
+ ~~~~~~~~~
200
+ * `#22 <https://github.com/aklajnert/pytest-subprocess/pull/22>`_: The `returncode` will not be ignored when `callback` is used.
201
+ * `#21 <https://github.com/aklajnert/pytest-subprocess/pull/21>`_: The exception raised from callback will take precedence over those from subprocess.
202
+ * `#20 <https://github.com/aklajnert/pytest-subprocess/pull/20>`_: Registering process will be now consistent regardless of the command type.
203
+ * `#19 <https://github.com/aklajnert/pytest-subprocess/pull/19>`_: Fixed crash for stderr redirect with an empty stream definition.
204
+
205
+ 0.1.3 (2020-03-04)
206
+ ------------------
207
+
208
+ Features
209
+ ~~~~~~~~
210
+ * `#13 <https://github.com/aklajnert/pytest-subprocess/pull/13>`_: Allow passing keyword arguments into callbacks.
211
+
212
+ Bug fixes
213
+ ~~~~~~~~~
214
+ * `#12 <https://github.com/aklajnert/pytest-subprocess/pull/12>`_: Properly raise exceptions from callback functions.
215
+
216
+ Documentation changes
217
+ ~~~~~~~~~~~~~~~~~~~~~
218
+ * `#15 <https://github.com/aklajnert/pytest-subprocess/pull/15>`_: Add documentation chapter about the callback functions.
219
+
220
+ 0.1.2 (2020-01-17)
221
+ ------------------
222
+
223
+ Features
224
+ ~~~~~~~~
225
+ * `#3 <https://github.com/aklajnert/pytest-subprocess/pull/3>`_: Add basic support for process input.
226
+
227
+ Bug fixes
228
+ ~~~~~~~~~
229
+ * `#5 <https://github.com/aklajnert/pytest-subprocess/pull/5>`_: Make ``wait()`` method to raise ``TimeoutError`` after the desired time will elapse.
230
+
231
+ Documentation changes
232
+ ~~~~~~~~~~~~~~~~~~~~~
233
+ * `#7 <https://github.com/aklajnert/pytest-subprocess/pull/7>`_, `#8 <https://github.com/aklajnert/pytest-subprocess/pull/8>`_, `#9 <https://github.com/aklajnert/pytest-subprocess/pull/9>`_: Create Sphinx documentation.
234
+
235
+ Other changes
236
+ ~~~~~~~~~~~~~
237
+ * `#10 <https://github.com/aklajnert/pytest-subprocess/pull/10>`_: Switch from ``tox`` to ``nox`` for running tests and tasks.
238
+ * `#4 <https://github.com/aklajnert/pytest-subprocess/pull/4>`_: Add classifier for Python 3.9. Update CI config to test also on that interpreter version.
239
+
240
+ 0.1.1 (2019-11-24)
241
+ ------------------
242
+
243
+ Other changes
244
+ ~~~~~~~~~~~~~
245
+ * `#1 <https://github.com/aklajnert/pytest-subprocess/pull/1>`_, `#2 <https://github.com/aklajnert/pytest-subprocess/pull/2>`_: Enable support for Python 3.4, add CI tests for that version.
246
+
247
+ 0.1.0 (2019-11-23)
248
+ ------------------
249
+
250
+ Initial release
@@ -1,22 +1,22 @@
1
-
2
- The MIT License (MIT)
3
-
4
- Copyright (c) 2019 Andrzej Klajnert
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
1
+
2
+ The MIT License (MIT)
3
+
4
+ Copyright (c) 2019 Andrzej Klajnert
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
@@ -1,10 +1,10 @@
1
- include LICENSE
2
- include README.rst
3
- include HISTORY.rst
4
- include pytest.ini
5
-
6
- recursive-include docs *
7
- recursive-include tests *.py
8
-
9
- recursive-exclude * __pycache__
10
- recursive-exclude * *.py[co]
1
+ include LICENSE
2
+ include README.rst
3
+ include HISTORY.rst
4
+ include pytest.ini
5
+
6
+ recursive-include docs *
7
+ recursive-include tests *.py
8
+
9
+ recursive-exclude * __pycache__
10
+ recursive-exclude * *.py[co]