pytest-api-core 1.0.9__tar.gz → 1.0.10__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.
- {pytest_api_core-1.0.9/src/pytest_api_core.egg-info → pytest_api_core-1.0.10}/PKG-INFO +3 -3
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/README.md +2 -2
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/pyproject.toml +1 -1
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/__init__.py +1 -1
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/security/redaction.py +15 -1
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10/src/pytest_api_core.egg-info}/PKG-INFO +3 -3
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/LICENSE +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/MANIFEST.in +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/setup.cfg +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/assertions/__init__.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/assertions/assert_utils.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/assertions/response_assertions.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/auth/__init__.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/auth/auth_handlers.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/client/__init__.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/client/api_client.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/client/api_response.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/config/__init__.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/config/base_settings.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/config/config_manager.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/config/env_loader.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/fixtures/__init__.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/fixtures/api_fixtures.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/plugin.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/reporters/__init__.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/reporters/html_reporter.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/reporters/templates/report.html +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/security/__init__.py +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core.egg-info/SOURCES.txt +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core.egg-info/dependency_links.txt +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core.egg-info/entry_points.txt +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core.egg-info/requires.txt +0 -0
- {pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-api-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.10
|
|
4
4
|
Summary: Pytest API automation framework with custom HTML reporting, reusable fixtures, and fluent assertions
|
|
5
5
|
Author: QA Platform Team
|
|
6
6
|
License: MIT License
|
|
@@ -92,13 +92,13 @@ Dynamic: license-file
|
|
|
92
92
|
## Installation
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
pip install pytest-api-core==1.0.
|
|
95
|
+
pip install pytest-api-core==1.0.10
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
With `.env` file support (recommended):
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
|
-
pip install "pytest-api-core[dotenv]==1.0.
|
|
101
|
+
pip install "pytest-api-core[dotenv]==1.0.10"
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
---
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
pip install pytest-api-core==1.0.
|
|
29
|
+
pip install pytest-api-core==1.0.10
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
With `.env` file support (recommended):
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
pip install "pytest-api-core[dotenv]==1.0.
|
|
35
|
+
pip install "pytest-api-core[dotenv]==1.0.10"
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
---
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pytest-api-core"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.10"
|
|
8
8
|
description = "Pytest API automation framework with custom HTML reporting, reusable fixtures, and fluent assertions"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { file = "LICENSE" }
|
|
@@ -23,7 +23,7 @@ from pytest_api_core.client.api_client import APIClient
|
|
|
23
23
|
from pytest_api_core.client.api_response import APIResponse
|
|
24
24
|
from pytest_api_core.security.redaction import add_sensitive_keys, register_secret
|
|
25
25
|
|
|
26
|
-
__version__ = "1.0.
|
|
26
|
+
__version__ = "1.0.10"
|
|
27
27
|
__all__ = [
|
|
28
28
|
"APIClient",
|
|
29
29
|
"APIResponse",
|
|
@@ -61,6 +61,12 @@ _JWT_RE = re.compile(r"\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*")
|
|
|
61
61
|
_KV_RE = re.compile(r"([A-Za-z0-9_.\-]+)=([^&\s\"',;]+)")
|
|
62
62
|
# "key": "value" pairs inside JSON text that couldn't be parsed (e.g. truncated).
|
|
63
63
|
_JSON_KV_RE = re.compile(r'"([^"\\]+)"(\s*:\s*)"((?:[^"\\]|\\.)*)"')
|
|
64
|
+
# Quoted values in free text such as pytest tracebacks, which print test source
|
|
65
|
+
# (``"token": "abc"``, ``token="abc"``) and dict reprs (``'token': 'abc'``).
|
|
66
|
+
_QUOTED_KV_RE = re.compile(
|
|
67
|
+
r"(?P<kq>[\"']?)(?P<key>[A-Za-z0-9_.\-]+)(?P=kq)(?P<sep>\s*[:=]\s*)"
|
|
68
|
+
r"(?P<vq>[\"'])(?:(?!(?P=vq))[^\\\n]|\\.)*(?P=vq)"
|
|
69
|
+
)
|
|
64
70
|
|
|
65
71
|
|
|
66
72
|
def _normalise(key: str) -> str:
|
|
@@ -101,7 +107,7 @@ def mask(value: Any) -> Any:
|
|
|
101
107
|
|
|
102
108
|
|
|
103
109
|
def scrub_text(text: str) -> str:
|
|
104
|
-
"""Remove registered secrets, auth-scheme credentials, JWTs and sensitive
|
|
110
|
+
"""Remove registered secrets, auth-scheme credentials, JWTs and sensitive key/value pairs."""
|
|
105
111
|
if not text:
|
|
106
112
|
return text
|
|
107
113
|
with _lock:
|
|
@@ -110,6 +116,14 @@ def scrub_text(text: str) -> str:
|
|
|
110
116
|
text = text.replace(secret, REDACTED)
|
|
111
117
|
text = _AUTH_SCHEME_RE.sub(lambda m: f"{m.group(1)} {REDACTED}", text)
|
|
112
118
|
text = _JWT_RE.sub(REDACTED, text)
|
|
119
|
+
text = _QUOTED_KV_RE.sub(
|
|
120
|
+
lambda m: (
|
|
121
|
+
f"{m['kq']}{m['key']}{m['kq']}{m['sep']}{m['vq']}{REDACTED}{m['vq']}"
|
|
122
|
+
if is_sensitive_key(m["key"])
|
|
123
|
+
else m.group(0)
|
|
124
|
+
),
|
|
125
|
+
text,
|
|
126
|
+
)
|
|
113
127
|
text = _KV_RE.sub(
|
|
114
128
|
lambda m: f"{m.group(1)}={REDACTED}" if is_sensitive_key(m.group(1)) else m.group(0), text
|
|
115
129
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-api-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.10
|
|
4
4
|
Summary: Pytest API automation framework with custom HTML reporting, reusable fixtures, and fluent assertions
|
|
5
5
|
Author: QA Platform Team
|
|
6
6
|
License: MIT License
|
|
@@ -92,13 +92,13 @@ Dynamic: license-file
|
|
|
92
92
|
## Installation
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
pip install pytest-api-core==1.0.
|
|
95
|
+
pip install pytest-api-core==1.0.10
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
With `.env` file support (recommended):
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
|
-
pip install "pytest-api-core[dotenv]==1.0.
|
|
101
|
+
pip install "pytest-api-core[dotenv]==1.0.10"
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
---
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/assertions/assert_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/config/base_settings.py
RENAMED
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/config/config_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/fixtures/api_fixtures.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/reporters/html_reporter.py
RENAMED
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core/reporters/templates/report.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytest_api_core-1.0.9 → pytest_api_core-1.0.10}/src/pytest_api_core.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|