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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytest-pyspec
3
- Version: 0.8.2
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 (>=7.2.1,<8.0.0)
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 TestHouse:
105
- "a House"
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 TestTwoFloors:
112
- """with two floors
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 test_second_floor(self):
121
- "has second floor"
112
+ def it_has_second_floor(self):
122
113
  assert 1 == 1
123
114
 
124
- def test_third_floor(self):
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
- Has door
125
+ has door
136
126
 
137
127
  A house
138
- With two floors
139
- Has stairs
140
- Has second floor
141
- Has third floor
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 TestHouse:
85
- "a House"
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 TestTwoFloors:
92
- """with two floors
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 test_second_floor(self):
101
- "has second floor"
92
+ def it_has_second_floor(self):
102
93
  assert 1 == 1
103
94
 
104
- def test_third_floor(self):
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
- Has door
105
+ has door
116
106
 
117
107
  A house
118
- With two floors
119
- Has stairs
120
- Has second floor
121
- Has third floor
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.8.2"
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 = "^7.2.1"
15
+ pytest = "^8.3.2"
16
16
 
17
17
  [tool.poetry.plugins.pytest11]
18
18
  pytest_pyspec = "pytest_pyspec.plugin"
File without changes