Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit a6c1c1a

Browse files
lmazueltroydai
authored andcommitted
Fix recordmode
1 parent 3e4f6e3 commit a6c1c1a

File tree

1 file changed

+1
-1
lines changed
  • src/azure_devtools/scenario_tests

1 file changed

+1
-1
lines changed

src/azure_devtools/scenario_tests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __init__(self, # pylint: disable=too-many-arguments
106106
before_record_request=self._process_request_recording,
107107
before_record_response=self._process_response_recording,
108108
decode_compressed_response=True,
109-
record_mode=self.config.record_mode,
109+
record_mode='once' if not self.is_live else 'all',
110110
filter_headers=self.FILTER_HEADERS
111111
)
112112
self.vcr.register_matcher('query', self._custom_request_query_matcher)

0 commit comments

Comments
 (0)