You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`@pytest.mark.parametrize`: Drives one test per sample file. Use `samples_to_test` or `samples_to_skip` with `get_sample_paths` / `get_async_sample_paths`.
99
-
-`@samplePathPasser`: Forwards the sample path to the recorder decorators.
99
+
-`@SamplePathPasser`: Forwards the sample path to the recorder decorators.
100
100
-`recorded_by_proxy` / `recorded_by_proxy_async`: Wrap tests for recording/playback. Include `RecordedTransport.HTTPX` when samples use httpx in addition to the default `RecordedTransport.AZURE_CORE`.
101
-
-`get_sample_environment_variables_map`: Map test env vars to the names expected by samples. Pass `{}` if you already export the sample variables directly. Example:
101
+
-`get_sample_environment_variables_map`: Your function that returns a mapping of **sample env-var name** -> **test env-var name**.
102
+
- The executor reads values from `**kwargs` using the *test env-var name* (typically injected by `@servicePreparer()`), then sets `os.environ[<sample env-var name>]` before running the sample.
103
+
- If your `@servicePreparer()` (or other decorators) already provide the sample env-var names directly (for example, `AZURE_AI_PROJECT_ENDPOINT=...`), pass `{}` to `SyncSampleExecutor` / `AsyncSampleExecutor`.
0 commit comments