pytest-pyspec 0.8.2__tar.gz → 0.9.0__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.
Potentially problematic release.
This version of pytest-pyspec might be problematic. Click here for more details.
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/PKG-INFO +13 -23
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/README.md +11 -21
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/pyproject.toml +2 -2
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/LICENSE +0 -0
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/pytest_pyspec/__init__.py +0 -0
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/pytest_pyspec/item.py +0 -0
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/pytest_pyspec/output.py +0 -0
- {pytest_pyspec-0.8.2 → pytest_pyspec-0.9.0}/pytest_pyspec/plugin.py +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**
|
|
@@ -81,28 +81,18 @@ The following test sample:
|
|
|
81
81
|
```python
|
|
82
82
|
import pytest
|
|
83
83
|
|
|
84
|
-
class
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
def test_door(self):
|
|
88
|
-
"has door"
|
|
84
|
+
class DescribeHouse:
|
|
85
|
+
def it_has_door(self):
|
|
89
86
|
assert 1 == 1
|
|
90
87
|
|
|
91
|
-
class
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
A house with two floor has stairs
|
|
95
|
-
"""
|
|
96
|
-
def test_stairs(self):
|
|
97
|
-
"has stairs"
|
|
88
|
+
class WithTwoFloors:
|
|
89
|
+
def it_has_stairs(self):
|
|
98
90
|
assert 1 == 1
|
|
99
91
|
|
|
100
|
-
def
|
|
101
|
-
"has second floor"
|
|
92
|
+
def it_has_second_floor(self):
|
|
102
93
|
assert 1 == 1
|
|
103
94
|
|
|
104
|
-
def
|
|
105
|
-
"has third floor"
|
|
95
|
+
def it_has_third_floor(self):
|
|
106
96
|
assert 1 == 2
|
|
107
97
|
```
|
|
108
98
|
|
|
@@ -112,13 +102,13 @@ Generates the following output:
|
|
|
112
102
|
test/test_sample.py
|
|
113
103
|
|
|
114
104
|
A house
|
|
115
|
-
✓
|
|
105
|
+
✓ has door
|
|
116
106
|
|
|
117
107
|
A house
|
|
118
|
-
|
|
119
|
-
✓
|
|
120
|
-
✓
|
|
121
|
-
✗
|
|
108
|
+
with two floors
|
|
109
|
+
✓ has stairs
|
|
110
|
+
✓ has second floor
|
|
111
|
+
✗ has third floor
|
|
122
112
|
```
|
|
123
113
|
|
|
124
114
|
## Installing and running **pySpec**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pytest-pyspec"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.9.0"
|
|
4
4
|
description = "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
|
authors = ["Felipe Curty <felipecrp@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -12,7 +12,7 @@ packages = [
|
|
|
12
12
|
|
|
13
13
|
[tool.poetry.dependencies]
|
|
14
14
|
python = "^3.8"
|
|
15
|
-
pytest = "^
|
|
15
|
+
pytest = "^8.3.2"
|
|
16
16
|
|
|
17
17
|
[tool.poetry.plugins.pytest11]
|
|
18
18
|
pytest_pyspec = "pytest_pyspec.plugin"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|