diff options
| author | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-01 16:29:13 -0500 |
|---|---|---|
| committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-01 17:29:22 -0500 |
| commit | 0d2d9c690a787f8894bb81fec25d65a4b774ad43 (patch) | |
| tree | 4154088435cdbe152e271974215479cf50fff02c /tests/unit | |
| parent | 026b627c63124c885ff734d3b30a15464f9b0c93 (diff) | |
| download | requests-cache-0d2d9c690a787f8894bb81fec25d65a4b774ad43.tar.gz | |
Add an intermediate wrapper class, OriginalResponse, to provide type hints for extra attributes set on requests.Response objects
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_session.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_session.py b/tests/unit/test_session.py index 17832bb..6a20107 100644 --- a/tests/unit/test_session.py +++ b/tests/unit/test_session.py @@ -81,8 +81,8 @@ def test_response_defaults(mock_session): cache_key = 'd7fa9fb7317b7412' assert response_1.cache_key == cache_key - assert response_1.created_at is None - assert response_1.expires is None + assert isinstance(response_1.created_at, datetime) + assert isinstance(response_1.expires, datetime) assert response_1.from_cache is False assert response_1.is_expired is False |
