Skip to content

Commit

Permalink
Make VCR work on pre-python-3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dmontagu committed Aug 30, 2024
1 parent 63737ac commit c6185e6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ dev-dependencies = [
"griffe==0.48.0",
"pyarrow>=17.0.0",
"pytest-recording>=0.13.2",
'urllib3<2; python_version < "3.10"'
]

[tool.rye.scripts]
Expand Down
10 changes: 5 additions & 5 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ black==24.8.0
blinker==1.8.2
# via flask
celery==5.4.0
certifi==2024.7.4
certifi==2024.8.30
# via httpcore
# via httpx
# via requests
Expand Down Expand Up @@ -160,7 +160,7 @@ mdurl==0.1.2
mergedeep==1.3.4
# via mkdocs
# via mkdocs-get-deps
mkdocs==1.6.0
mkdocs==1.6.1
# via mkdocs-autorefs
# via mkdocs-material
# via mkdocstrings
Expand Down Expand Up @@ -189,7 +189,7 @@ nodeenv==1.9.1
numpy==2.1.0
# via pandas
# via pyarrow
openai==1.42.0
openai==1.43.0
opentelemetry-api==1.27.0
# via opentelemetry-exporter-otlp-proto-http
# via opentelemetry-instrumentation
Expand Down Expand Up @@ -332,12 +332,12 @@ psycopg-binary==3.2.1
# via psycopg
psycopg2-binary==2.9.9
pyarrow==17.0.0
pydantic @ git+https://github.com/pydantic/pydantic@e13b15edbe6cf90c603fbda1246b9156764c810f
pydantic @ git+https://github.com/pydantic/pydantic@111eb01ea3808e5283f8951265c35f47855f0faa
# via anthropic
# via fastapi
# via openai
# via sqlmodel
pydantic-core==2.23.0
pydantic-core==2.23.1
# via pydantic
pygments==2.18.0
# via mkdocs-material
Expand Down
2 changes: 1 addition & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# with-sources: false

-e file:.
certifi==2024.7.4
certifi==2024.8.30
# via requests
charset-normalizer==3.3.2
# via requests
Expand Down
10 changes: 1 addition & 9 deletions tests/aaa_query_client/test_query_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
from datetime import datetime, timezone

import pytest
Expand All @@ -11,14 +10,7 @@
# and run the tests with `--record-mode=rewrite --inline-snapshot=fix` to update the cassettes and snapshots.
CLIENT_BASE_URL = 'http://localhost:8000/'
CLIENT_READ_TOKEN = '6qdcmMdvHhyqy6sjhmSW08q1J5VCMRfLl23yNbdz3YGn'
pytestmark = [
pytest.mark.vcr(),
pytest.mark.skipif(
sys.version_info < (3, 10),
reason='vcr is not compatible with latest urllib3 on python<3.10, '
'see https://github.com/kevin1024/vcrpy/issues/688',
),
]
pytestmark = [pytest.mark.vcr()]


def test_read_sync():
Expand Down

0 comments on commit c6185e6

Please sign in to comment.