|
1 | | -stdio Manager |
2 | | -============= |
| 1 | +stdio Manager: Context manager for mocking/wrapping ``stdin``/``stdout``/``stderr`` |
| 2 | +=================================================================================== |
3 | 3 |
|
4 | | -*Python context manager for mocking/wrapping* ``stdin``/``stdout``/``stderr`` |
| 4 | +**Current Development Version:** |
5 | 5 |
|
6 | 6 | .. image:: https://travis-ci.org/bskinn/stdio-mgr.svg?branch=dev |
7 | 7 | :target: https://travis-ci.org/bskinn/stdio-mgr |
8 | 8 |
|
9 | 9 | .. image:: https://codecov.io/gh/bskinn/stdio-mgr/branch/dev/graph/badge.svg |
10 | 10 | :target: https://codecov.io/gh/bskinn/stdio-mgr |
11 | 11 |
|
| 12 | +**Most Recent Stable Release:** |
| 13 | + |
12 | 14 | .. image:: https://img.shields.io/pypi/v/stdio_mgr.svg |
13 | 15 | :target: https://pypi.org/project/stdio-mgr |
14 | 16 |
|
15 | 17 | .. image:: https://img.shields.io/pypi/pyversions/stdio-mgr.svg |
16 | 18 |
|
| 19 | +**Info:** |
| 20 | + |
17 | 21 | .. image:: https://img.shields.io/github/license/mashape/apistatus.svg |
18 | 22 | :target: https://github.com/bskinn/stdio-mgr/blob/master/LICENSE.txt |
19 | 23 |
|
| 24 | +.. image:: https://img.shields.io/badge/code%20style-black-000000.svg |
| 25 | + :target: https://github.com/ambv/black |
| 26 | + |
| 27 | +---- |
| 28 | + |
20 | 29 | **Have a CLI Python application?** |
21 | 30 |
|
22 | 31 | **Want to automate testing of the actual console input & output |
@@ -75,7 +84,7 @@ upon exiting the managed context. |
75 | 84 | ... warnings.warn("'foo' has no 'bar'") |
76 | 85 | ... err_cap = err_.getvalue() |
77 | 86 | >>> err_cap |
78 | | - "...README.rst:2: UserWarning: 'foo' has no 'bar'\n =============\n" |
| 87 | + "...UserWarning: 'foo' has no 'bar'\n..." |
79 | 88 |
|
80 | 89 |
|
81 | 90 | **Mock** ``stdin``\ **:** |
@@ -164,11 +173,17 @@ wrap functions that directly output to ``stdout``/``stderr``. A ``stdout`` examp |
164 | 173 | | Lorem ipsum dolor sit amet. | |
165 | 174 | =============================== |
166 | 175 |
|
| 176 | +---- |
167 | 177 |
|
168 | | -**Feature requests or bug reports?** |
| 178 | +Available on `PyPI <https://pypi.python.org/pypi/stdio-mgr>`__ |
| 179 | +(``pip install stdio-mgr``). |
169 | 180 |
|
170 | | -Please submit them as GitHub `Issues <https://github.com/bskinn/stdio-mgr/issues>`__. |
| 181 | +Source on `GitHub <https://github.com/bskinn/stdio-mgr>`__. Bug reports |
| 182 | +and feature requests are welcomed at the |
| 183 | +`Issues <https://github.com/bskinn/stdio-mgr/issues>`__ page there. |
171 | 184 |
|
172 | | -\(c) 2018 Brian Skinn |
| 185 | +Copyright \(c) 2018-2019 Brian Skinn |
173 | 186 |
|
| 187 | +License: The MIT License. See `LICENSE.txt <https://github.com/bskinn/stdio-mgr/blob/master/LICENSE.txt>`__ |
| 188 | +for full license terms. |
174 | 189 |
|
0 commit comments