pytest-httpchain-jsonref 0.2.0__tar.gz → 0.2.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pytest-httpchain-jsonref
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: JSON reference ($ref) support for pytest-httpchain
5
5
  Author: Alexander Eresov
6
6
  Author-email: Alexander Eresov <aeresov@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pytest-httpchain-jsonref"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "JSON reference ($ref) support for pytest-httpchain"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -65,7 +65,7 @@ class CircularDependencyTracker:
65
65
  Returns:
66
66
  A new tracker with copies of the current reference sets
67
67
  """
68
- child = CircularDependencyTracker()
68
+ child = self.__class__()
69
69
  child.external_refs = self.external_refs.copy()
70
70
  child.internal_refs = self.internal_refs.copy()
71
71
  return child
@@ -143,6 +143,7 @@ class ReferenceResolver:
143
143
 
144
144
  try:
145
145
  referenced_data = self._navigate_pointer(root_data, pointer)
146
+ assert self.base_path is not None
146
147
  return self._resolve_refs(referenced_data, self.base_path, root_data)
147
148
  finally:
148
149
  self.tracker.clear_internal_ref(pointer)