pytest-httpchain-jsonref 0.2.4__tar.gz → 0.3.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.
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/PKG-INFO +1 -1
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/pyproject.toml +1 -1
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/src/pytest_httpchain_jsonref/plumbing/reference.py +2 -4
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/README.md +0 -0
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/src/pytest_httpchain_jsonref/__init__.py +0 -0
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/src/pytest_httpchain_jsonref/exceptions.py +0 -0
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/src/pytest_httpchain_jsonref/loader.py +0 -0
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/src/pytest_httpchain_jsonref/plumbing/__init__.py +0 -0
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/src/pytest_httpchain_jsonref/plumbing/circular.py +0 -0
- {pytest_httpchain_jsonref-0.2.4 → pytest_httpchain_jsonref-0.3.0}/src/pytest_httpchain_jsonref/plumbing/path.py +0 -0
|
@@ -57,8 +57,7 @@ class ReferenceResolver:
|
|
|
57
57
|
ReferenceResolverError: If the file cannot be loaded or references cannot be resolved
|
|
58
58
|
"""
|
|
59
59
|
try:
|
|
60
|
-
|
|
61
|
-
data = json.load(f)
|
|
60
|
+
data = json.loads(path.read_text(encoding="utf-8"))
|
|
62
61
|
|
|
63
62
|
# If root_path wasn't provided, find a suitable one by going up the directory tree
|
|
64
63
|
# up to max_parent_traversal_depth levels
|
|
@@ -204,8 +203,7 @@ class ReferenceResolver:
|
|
|
204
203
|
|
|
205
204
|
def _load_json_file(self, path: Path) -> dict[str, Any]:
|
|
206
205
|
"""Load JSON file content."""
|
|
207
|
-
|
|
208
|
-
return json.load(f)
|
|
206
|
+
return json.loads(path.read_text(encoding="utf-8"))
|
|
209
207
|
|
|
210
208
|
def _create_child_resolver(self) -> Self:
|
|
211
209
|
"""Create a child resolver with inherited state."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|