Skip to content

community/py3-requests-cache: upgrade to 1.2.1, reenable on loongarch64

mio requested to merge mio/aports:py3-requests-cache into master

https://github.com/requests-cache/requests-cache/releases/tag/v1.2.0
https://github.com/requests-cache/requests-cache/releases/tag/v1.1.0

1.2.1 fixes a failed test test_mock_session. Error found on the 3.21 builders.

______________________________ test_mock_session _______________________________
[gw1] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-requests-cache/src/requests-cache-1.0.1/.testenv/bin/python3

mock_http_adapter = <MagicMock name='get_connection' id='4109786448'>

    @patch.object(
        requests.adapters.HTTPAdapter, 'get_connection', side_effect=ValueError('Real request made!')
    )
    def test_mock_session(mock_http_adapter):
        """Test that the mock_session fixture is working as expected"""
        with get_responses():
            # An error will be raised if a real request is made
>           with pytest.raises(ValueError):
E           Failed: DID NOT RAISE <class 'ValueError'>

tests/compat/test_responses_load_cache.py:52: Failed
Edited by mio

Merge request reports

Loading