Skip to content

Commit ff4ef9a

Browse files
Abel Milashclaude
andcommitted
Merge main: keep new test classes and response variable rename
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2 parents 9361629 + 78cd852 commit ff4ef9a

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

tests/unit/data/test_odata_internal.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ def _make_odata_client() -> _ODataClient:
2222

2323
def _mock_response(json_data=None, text="", status_code=200, headers=None):
2424
"""Create a mock HTTP response."""
25-
r = MagicMock()
26-
r.status_code = status_code
27-
r.text = text or (str(json_data) if json_data else "")
28-
r.json.return_value = json_data or {}
29-
r.headers = headers or {}
30-
return r
25+
response = MagicMock()
26+
response.status_code = status_code
27+
response.text = text or (str(json_data) if json_data else "")
28+
response.json.return_value = json_data or {}
29+
response.headers = headers or {}
30+
return response
3131

3232

3333
def _entity_def_response(entity_set_name="accounts", primary_id="accountid", metadata_id="meta-001"):
@@ -1933,6 +1933,7 @@ def test_none_kind_raises_validation_error(self):
19331933
self.od._flush_cache(None)
19341934

19351935

1936+
19361937
class TestPicklistLabelResolution(unittest.TestCase):
19371938
"""Tests for picklist label-to-integer resolution.
19381939

0 commit comments

Comments
 (0)