pytest-pyspec 0.5.2__py3-none-any.whl → 0.10.1__py3-none-any.whl

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.
@@ -1,77 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pytest-pyspec
3
- Version: 0.5.2
4
- Summary: A plugin that transforms the pytest output into a result similar to the RSpec. It enables the use of docstrings to display results and also enables the use of the prefixes "describe", "with" and "it".
5
- Home-page: https://github.com/felipecrp/pytest-pyspec
6
- License: GPL-3.0-only
7
- Author: Felipe Curty
8
- Author-email: felipecrp@gmail.com
9
- Requires-Python: >=3.8,<4.0
10
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Requires-Dist: pytest (>=7.2.1,<8.0.0)
17
- Project-URL: Repository, https://github.com/felipecrp/pytest-pyspec
18
- Description-Content-Type: text/markdown
19
-
20
- [![](https://github.com/felipecrp/pytest-pyspec/actions/workflows/pytest.yml/badge.svg)](https://github.com/felipecrp/pytest-pyspec/actions/workflows/pytest.yml)
21
-
22
- The **pytest-pyspec** plugin transforms the pytest output into a result similar to the RSpec.
23
-
24
- Just nest your tests using classes and include _docstring_ for each class and test. You can create any nested levels.
25
-
26
- The following test sample:
27
-
28
- ```python
29
- import pytest
30
-
31
- class TestHouse:
32
- "a House"
33
-
34
- def test_door(self):
35
- "has door"
36
- assert 1 == 1
37
-
38
- class TestTwoFloors:
39
- """with two floors
40
-
41
- A house with two floor has stairs
42
- """
43
- def test_stairs(self):
44
- "has stairs"
45
- assert 1 == 1
46
-
47
- def test_second_floor(self):
48
- "has second floor"
49
- assert 1 == 1
50
-
51
- def test_third_floor(self):
52
- "has third floor"
53
- assert 1 == 2
54
- ```
55
-
56
- Generates the following output:
57
-
58
- ```
59
- test/test_sample.py
60
-
61
- A house
62
- ✓ Has door
63
-
64
- A house
65
- With two floors
66
- ✓ Has stairs
67
- ✓ Has second floor
68
- ✗ Has third floor
69
- ```
70
-
71
- ## Installing and running **pySpec**
72
-
73
- ```bash
74
- pip install pytest-pyspec
75
- pytest --pyspec
76
- ```
77
-
@@ -1,9 +0,0 @@
1
- pytest_pyspec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- pytest_pyspec/item.py,sha256=NI_bDfKILYEZq021Sag8mM1p6wfopjrXOcMeH8rEQuQ,3935
3
- pytest_pyspec/output.py,sha256=e5qUSfxlf6cseaFimSeCKetcVdAtQaAFxnE00Vy5klM,788
4
- pytest_pyspec/plugin.py,sha256=qL1Wp8ITvhrNRoUkF-58RejZnsuIbUPYw-kU3B7OFyw,2313
5
- pytest_pyspec-0.5.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
- pytest_pyspec-0.5.2.dist-info/METADATA,sha256=K6JipmWNrU5QS6IwpXn0EztilFPwrZ-cIGPhhpUrlFw,2107
7
- pytest_pyspec-0.5.2.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
8
- pytest_pyspec-0.5.2.dist-info/entry_points.txt,sha256=GObsuy5lIVED-9EDmeyFXzvZF3BLoZT7Ll58sTW2pnc,47
9
- pytest_pyspec-0.5.2.dist-info/RECORD,,
@@ -1,3 +0,0 @@
1
- [pytest11]
2
- pytest_pyspec=pytest_pyspec.plugin
3
-