@@ -612,9 +612,7 @@ def enable_vcr_tests(self) -> bool:
612612
613613 ```python title="tests/conftest.py"
614614 import pytest
615- from langchain_tests.conftest import (
616- _base_vcr_config as _base_vcr_config,
617- )
615+ from langchain_tests.conftest import base_vcr_config
618616
619617 _EXTRA_HEADERS = [
620618 # Specify additional headers to redact
@@ -629,9 +627,9 @@ def remove_response_headers(response: dict) -> dict:
629627
630628
631629 @pytest.fixture(scope="session")
632- def vcr_config(_base_vcr_config: dict ) -> dict: # noqa: F811
630+ def vcr_config() -> dict:
633631 """Extend the default configuration from langchain_tests."""
634- config = _base_vcr_config.copy ()
632+ config = base_vcr_config ()
635633 config.setdefault("filter_headers", []).extend(_EXTRA_HEADERS)
636634 config["before_record_response"] = remove_response_headers
637635
@@ -651,9 +649,7 @@ def vcr_config(_base_vcr_config: dict) -> dict: # noqa: F811
651649 CustomPersister,
652650 CustomSerializer,
653651 )
654- from langchain_tests.conftest import (
655- _base_vcr_config as _base_vcr_config,
656- )
652+ from langchain_tests.conftest import base_vcr_config
657653 from vcr import VCR
658654
659655 _EXTRA_HEADERS = [
@@ -669,9 +665,9 @@ def remove_response_headers(response: dict) -> dict:
669665
670666
671667 @pytest.fixture(scope="session")
672- def vcr_config(_base_vcr_config: dict ) -> dict: # noqa: F811
668+ def vcr_config() -> dict:
673669 """Extend the default configuration from langchain_tests."""
674- config = _base_vcr_config.copy ()
670+ config = base_vcr_config ()
675671 config.setdefault("filter_headers", []).extend(_EXTRA_HEADERS)
676672 config["before_record_response"] = remove_response_headers
677673 # New: enable serializer and set file extension
0 commit comments