Skip to content

Commit d3be4a0

Browse files
authored
infra: remove use of --vcr-record=none (#31452)
This option is specific to `pytest-vcr`. `pytest-recording` runs in this mode by default.
1 parent 3db1aa0 commit d3be4a0

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

libs/partners/anthropic/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test tests:
1414
uv run --group test pytest -vvv --disable-socket --allow-unix-socket $(TEST_FILE)
1515

1616
integration_test integration_tests:
17-
uv run --group test --group test_integration pytest -vvv --timeout 30 $(TEST_FILE) --vcr-record=none
17+
uv run --group test --group test_integration pytest -vvv --timeout 30 $(TEST_FILE)
1818

1919
test_watch:
2020
uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)

libs/partners/openai/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test tests:
2424
TIKTOKEN_CACHE_DIR=tiktoken_cache uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)
2525

2626
integration_test integration_tests:
27-
uv run --group test --group test_integration pytest -n auto $(TEST_FILE) --vcr-record=none
27+
uv run --group test --group test_integration pytest -n auto $(TEST_FILE)
2828

2929
test_watch:
3030
uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)

libs/standard-tests/langchain_tests/integration_tests/chat_models.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -661,12 +661,6 @@ def pytest_recording_configure(config: dict, vcr: VCR) -> None:
661661
662662
You can then commit the cassette to your repository. Subsequent test runs
663663
will use the cassette instead of making HTTP calls.
664-
665-
.. tip::
666-
Adding ``--vcr-record=none`` to the pytest command will ensure that
667-
no new cassettes are recorded, and only existing cassettes are used.
668-
Consider adding this to your CI configuration (e.g., modify relevant
669-
Makefile commands).
670664
""" # noqa: E501
671665

672666
@property

libs/standard-tests/langchain_tests/unit_tests/chat_models.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -763,13 +763,6 @@ def pytest_recording_configure(config: dict, vcr: VCR) -> None:
763763
You can then commit the cassette to your repository. Subsequent test runs
764764
will use the cassette instead of making HTTP calls.
765765
766-
.. tip::
767-
Adding ``--vcr-record=none`` to the pytest command will ensure that
768-
no new cassettes are recorded, and only existing cassettes are used.
769-
Consider adding this to your CI configuration (e.g., modify relevant
770-
Makefile commands).
771-
772-
773766
Testing initialization from environment variables
774767
Some unit tests may require testing initialization from environment variables.
775768
These tests can be enabled by overriding the ``init_from_env_params``

0 commit comments

Comments
 (0)