pytest-pyspec 0.8.2__py3-none-any.whl → 0.9.0__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.
Potentially problematic release.
This version of pytest-pyspec might be problematic. Click here for more details.
- {pytest_pyspec-0.8.2.dist-info → pytest_pyspec-0.9.0.dist-info}/METADATA +13 -23
- {pytest_pyspec-0.8.2.dist-info → pytest_pyspec-0.9.0.dist-info}/RECORD +5 -5
- {pytest_pyspec-0.8.2.dist-info → pytest_pyspec-0.9.0.dist-info}/LICENSE +0 -0
- {pytest_pyspec-0.8.2.dist-info → pytest_pyspec-0.9.0.dist-info}/WHEEL +0 -0
- {pytest_pyspec-0.8.2.dist-info → pytest_pyspec-0.9.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pytest-pyspec
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
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
5
|
Home-page: https://github.com/felipecrp/pytest-pyspec
|
|
6
6
|
License: MIT
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Requires-Dist: pytest (>=
|
|
17
|
+
Requires-Dist: pytest (>=8.3.2,<9.0.0)
|
|
18
18
|
Project-URL: Repository, https://github.com/felipecrp/pytest-pyspec
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
|
|
@@ -101,28 +101,18 @@ The following test sample:
|
|
|
101
101
|
```python
|
|
102
102
|
import pytest
|
|
103
103
|
|
|
104
|
-
class
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
def test_door(self):
|
|
108
|
-
"has door"
|
|
104
|
+
class DescribeHouse:
|
|
105
|
+
def it_has_door(self):
|
|
109
106
|
assert 1 == 1
|
|
110
107
|
|
|
111
|
-
class
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
A house with two floor has stairs
|
|
115
|
-
"""
|
|
116
|
-
def test_stairs(self):
|
|
117
|
-
"has stairs"
|
|
108
|
+
class WithTwoFloors:
|
|
109
|
+
def it_has_stairs(self):
|
|
118
110
|
assert 1 == 1
|
|
119
111
|
|
|
120
|
-
def
|
|
121
|
-
"has second floor"
|
|
112
|
+
def it_has_second_floor(self):
|
|
122
113
|
assert 1 == 1
|
|
123
114
|
|
|
124
|
-
def
|
|
125
|
-
"has third floor"
|
|
115
|
+
def it_has_third_floor(self):
|
|
126
116
|
assert 1 == 2
|
|
127
117
|
```
|
|
128
118
|
|
|
@@ -132,13 +122,13 @@ Generates the following output:
|
|
|
132
122
|
test/test_sample.py
|
|
133
123
|
|
|
134
124
|
A house
|
|
135
|
-
✓
|
|
125
|
+
✓ has door
|
|
136
126
|
|
|
137
127
|
A house
|
|
138
|
-
|
|
139
|
-
✓
|
|
140
|
-
✓
|
|
141
|
-
✗
|
|
128
|
+
with two floors
|
|
129
|
+
✓ has stairs
|
|
130
|
+
✓ has second floor
|
|
131
|
+
✗ has third floor
|
|
142
132
|
```
|
|
143
133
|
|
|
144
134
|
## Installing and running **pySpec**
|
|
@@ -2,8 +2,8 @@ pytest_pyspec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
pytest_pyspec/item.py,sha256=r_Yr8s224s5IJCDTsnS5FzhOWhtHe4vJwpV7GHyUH40,4160
|
|
3
3
|
pytest_pyspec/output.py,sha256=e5qUSfxlf6cseaFimSeCKetcVdAtQaAFxnE00Vy5klM,788
|
|
4
4
|
pytest_pyspec/plugin.py,sha256=BAMdVU4XqwcThOiBrJC6JX0LsM6vjfLjmf1JGQMJNTE,2625
|
|
5
|
-
pytest_pyspec-0.
|
|
6
|
-
pytest_pyspec-0.
|
|
7
|
-
pytest_pyspec-0.
|
|
8
|
-
pytest_pyspec-0.
|
|
9
|
-
pytest_pyspec-0.
|
|
5
|
+
pytest_pyspec-0.9.0.dist-info/LICENSE,sha256=PXKqh3rDWRsfhWsjBQ27qqYzE5E05n-eFRH95LsKRT4,1094
|
|
6
|
+
pytest_pyspec-0.9.0.dist-info/METADATA,sha256=1YrDPSYN9px_CYHKCx7kriwYP4MAda5eJRKX1FJQOxc,3538
|
|
7
|
+
pytest_pyspec-0.9.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
8
|
+
pytest_pyspec-0.9.0.dist-info/entry_points.txt,sha256=GObsuy5lIVED-9EDmeyFXzvZF3BLoZT7Ll58sTW2pnc,47
|
|
9
|
+
pytest_pyspec-0.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|