mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
test: give the image edit logging objects a fixed start time instead of the clock
This commit is contained in:
parent
cf3225ef46
commit
27e862506f
2 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ async def test_router_image_edit_bills_the_deployment_price_with_a_logger_built_
|
|||
logging_obj, routed_request = litellm.utils.function_setup(
|
||||
original_function="aimage_edit",
|
||||
rules_obj=litellm.utils.Rules(),
|
||||
start_time=datetime.now(),
|
||||
start_time=datetime(2026, 1, 1),
|
||||
**request,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -604,7 +604,7 @@ async def test_flux2_router_image_edit_bills_the_deployment_rates_with_a_logger_
|
|||
"litellm_call_id": "proxy-call-id",
|
||||
}
|
||||
logging_obj, routed_request = litellm.utils.function_setup(
|
||||
original_function="aimage_edit", rules_obj=litellm.utils.Rules(), start_time=datetime.now(), **request
|
||||
original_function="aimage_edit", rules_obj=litellm.utils.Rules(), start_time=datetime(2026, 1, 1), **request
|
||||
)
|
||||
|
||||
response: Final = await router.aimage_edit(**routed_request, litellm_logging_obj=logging_obj)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue