Skip to content

Commit 0f3944c

Browse files
Forward cache_ttl_seconds on manager-target fixture calls
PR #172 review: _run_call's manager-target fetch/get dropped call.cache_ttl_seconds, so target: manager fixtures couldn't exercise the manager's threading (033/034 use direct-backend targets, so they were unaffected). Forward the control on both, matching the direct-backend path.
1 parent fa6c3d5 commit 0f3944c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/conformance/test_prompt_management.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ async def _run_call(
347347
assert manager is not None
348348
if operation == "fetch":
349349
assert call.name is not None
350-
return await manager.fetch(call.name, call.label), None
350+
return (
351+
await manager.fetch(call.name, call.label, cache_ttl_seconds=call.cache_ttl_seconds),
352+
None,
353+
)
351354
if operation == "render":
352355
# Either inline fetched_prompt or a ref to a capture.
353356
if call.fetched_prompt_ref is not None:
@@ -382,6 +385,7 @@ async def _run_call(
382385
call.label,
383386
call.variables or {},
384387
placeholders=placeholders,
388+
cache_ttl_seconds=call.cache_ttl_seconds,
385389
),
386390
None,
387391
)

0 commit comments

Comments
 (0)