(client: Any, environment_key: str | None)
| 55 | calls: list[dict[str, Any]] = [] |
| 56 | |
| 57 | def fake_factory(client: Any, environment_key: str | None) -> Any: |
| 58 | calls.append({"environment_key": environment_key}) |
| 59 | return client |
| 60 | |
| 61 | monkeypatch.setattr(session_runner_mod, "_scoped_client", fake_factory) |
| 62 | return calls |