mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
test(e2e): record a step when the Codex harness sets up its home and workspace
The suite rules ask every public harness helper that does something to record a step, so a failed run shows whether it died while setting up Codex or while running it
This commit is contained in:
parent
f2da92d092
commit
00a085fa6e
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ class CodexHarness:
|
|||
def codex_home(self) -> Path:
|
||||
return self.home / ".codex"
|
||||
|
||||
@step("Create a workspace folder holding the test's files")
|
||||
def new_workspace(self, files: Mapping[str, str]) -> Path:
|
||||
workspace: Final = Path(tempfile.mkdtemp(prefix="workspace-", dir=self.home))
|
||||
for name, content in files.items():
|
||||
|
|
@ -71,6 +72,7 @@ class CodexHarness:
|
|||
return codex_run(exit_code=completed.returncode, stdout=completed.stdout, stderr=completed.stderr)
|
||||
|
||||
|
||||
@step("Give Codex a fresh empty home whose config sends every request to the proxy")
|
||||
@contextmanager
|
||||
def codex_harness(
|
||||
*, gateway: str, api_key: str, rate_bucket: RateBucket, limiter: RateLimiter
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue