pytest-pyspec 0.5.0__py3-none-any.whl → 0.5.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.

Potentially problematic release.


This version of pytest-pyspec might be problematic. Click here for more details.

pytest_pyspec/item.py CHANGED
@@ -1,4 +1,5 @@
1
1
  from types import ModuleType
2
+ from typing import Dict, List
2
3
  import pytest
3
4
 
4
5
  class Item:
@@ -35,9 +36,6 @@ class Item:
35
36
  description = description.replace('describe_', '')
36
37
  split = True
37
38
 
38
- if description.lower().startswith("with_"):
39
- split = True
40
-
41
39
  if split:
42
40
  description = description.replace('_', ' ')
43
41
 
@@ -61,8 +59,8 @@ class Test(Item):
61
59
  class Container(Item):
62
60
  def __init__(self, item: pytest.Item):
63
61
  super().__init__(item)
64
- self.tests = list[Test]()
65
- self.containers = list[Container]()
62
+ self.tests: List[Test] = list()
63
+ self.containers: List[Container] = list()
66
64
  self.parent = None
67
65
 
68
66
  def add(self, test: Test):
@@ -109,7 +107,7 @@ class ItemFactory:
109
107
 
110
108
  class ContainerFactory:
111
109
  def __init__(self) -> None:
112
- self.containers = dict[str, Container]()
110
+ self.containers: Dict[str, Container] = dict()
113
111
 
114
112
  def create(self, item) -> Container:
115
113
  containers = self._create_containers(item)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytest-pyspec
3
- Version: 0.5.0
3
+ Version: 0.5.1
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: GPL-3.0-only
@@ -0,0 +1,9 @@
1
+ pytest_pyspec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ pytest_pyspec/item.py,sha256=ALTEaBmxvE0GJ0c7bf6_UTs9BOst9_uknGVkSJcR6O4,3797
3
+ pytest_pyspec/output.py,sha256=nckOCOa4V5oH43tlvaflVIj6fgC8OU3I8p3ADn_N3jM,758
4
+ pytest_pyspec/plugin.py,sha256=qL1Wp8ITvhrNRoUkF-58RejZnsuIbUPYw-kU3B7OFyw,2313
5
+ pytest_pyspec-0.5.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
+ pytest_pyspec-0.5.1.dist-info/METADATA,sha256=LdCT8zy17SO-jJaUr3b3r0D7gtxv9GIanntqfrK5MH0,1945
7
+ pytest_pyspec-0.5.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
8
+ pytest_pyspec-0.5.1.dist-info/entry_points.txt,sha256=GObsuy5lIVED-9EDmeyFXzvZF3BLoZT7Ll58sTW2pnc,47
9
+ pytest_pyspec-0.5.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.4.0
2
+ Generator: poetry-core 1.5.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,9 +0,0 @@
1
- pytest_pyspec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- pytest_pyspec/item.py,sha256=rxIXicEo5e0ucA7WNZYU4FdJiDC-sdNr5U0iblavPVM,3827
3
- pytest_pyspec/output.py,sha256=nckOCOa4V5oH43tlvaflVIj6fgC8OU3I8p3ADn_N3jM,758
4
- pytest_pyspec/plugin.py,sha256=qL1Wp8ITvhrNRoUkF-58RejZnsuIbUPYw-kU3B7OFyw,2313
5
- pytest_pyspec-0.5.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
- pytest_pyspec-0.5.0.dist-info/METADATA,sha256=YrxAwvJREXst0tgS-4U9MpKV1mx7xMMS8nLS_yc7GX0,1945
7
- pytest_pyspec-0.5.0.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
8
- pytest_pyspec-0.5.0.dist-info/entry_points.txt,sha256=GObsuy5lIVED-9EDmeyFXzvZF3BLoZT7Ll58sTW2pnc,47
9
- pytest_pyspec-0.5.0.dist-info/RECORD,,