pytest-pyspec 0.4.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,75 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pytest-pyspec
3
- Version: 0.4.2
4
- Summary: A python test spec based on pytest
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
-
21
- The **pySpec** plugin transforms the pytest output into RSpec.
22
-
23
- Just nest your tests using classes and include _docstring_ for each class and test. You can create any nested levels.
24
-
25
- The following test sample:
26
-
27
- ```python
28
- import pytest
29
-
30
- class TestHouse:
31
- "a House"
32
-
33
- def test_door(self):
34
- "has door"
35
- assert 1 == 1
36
-
37
- class TestTwoFloors:
38
- """with two floors
39
-
40
- A house with two floor has stairs
41
- """
42
- def test_stairs(self):
43
- "has stairs"
44
- assert 1 == 1
45
-
46
- def test_second_floor(self):
47
- "has second floor"
48
- assert 1 == 1
49
-
50
- def test_third_floor(self):
51
- "has third floor"
52
- assert 1 == 2
53
- ```
54
-
55
- Generates the following output:
56
-
57
- ```
58
- test/test_sample.py
59
-
60
- A house
61
- ✓ Has door
62
-
63
- A house
64
- With two floors
65
- ✓ Has stairs
66
- ✓ Has second floor
67
- ✗ Has third floor
68
- ```
69
-
70
- ## Installing and running **pySpec**
71
-
72
- ```bash
73
- pip install pytest-pyspec
74
- pytest --pyspec
75
- ```
@@ -1,9 +0,0 @@
1
- pytest_pyspec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- pytest_pyspec/item.py,sha256=bplVZW87fW6c9Wo7YpZxCHwwbe91ZybIU3F98Ur9DZk,3749
3
- pytest_pyspec/output.py,sha256=nckOCOa4V5oH43tlvaflVIj6fgC8OU3I8p3ADn_N3jM,758
4
- pytest_pyspec/plugin.py,sha256=g4TGAkqFD0B_6tjNMB5hazpbaZ8x_Sjd-oyzn-43K0c,1959
5
- pytest_pyspec-0.4.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
- pytest_pyspec-0.4.2.dist-info/METADATA,sha256=5PMfxx0V0ebDqFpFpMkdtmruXRefgXWhMG-GroCSmVs,1747
7
- pytest_pyspec-0.4.2.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
8
- pytest_pyspec-0.4.2.dist-info/entry_points.txt,sha256=GObsuy5lIVED-9EDmeyFXzvZF3BLoZT7Ll58sTW2pnc,47
9
- pytest_pyspec-0.4.2.dist-info/RECORD,,
@@ -1,3 +0,0 @@
1
- [pytest11]
2
- pytest_pyspec=pytest_pyspec.plugin
3
-