File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ async def create_instance(
525
525
)
526
526
527
527
message , status , response = await self .submit (
528
- content = content .dict (exclude_none = True ),
528
+ content = content .model_dump (exclude_none = True ),
529
529
message_type = MessageType .instance ,
530
530
channel = channel ,
531
531
storage_engine = storage_engine ,
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ async def get_estimated_price(
462
462
self ,
463
463
content : ExecutableContent ,
464
464
) -> PriceResponse :
465
- cleaned_content = content .dict (exclude_none = True )
465
+ cleaned_content = content .model_dump (exclude_none = True )
466
466
item_content : str = json .dumps (
467
467
cleaned_content ,
468
468
separators = ("," , ":" ),
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ async def test_get_program_price_valid():
15
15
required_tokens = 3.0555555555555556e-06 ,
16
16
payment_type = "superfluid" ,
17
17
)
18
- mock_session = make_mock_get_session (expected .dict ())
18
+ mock_session = make_mock_get_session (expected .model_dump ())
19
19
async with mock_session :
20
20
response = await mock_session .get_program_price ("cacacacacacaca" )
21
21
assert response == expected
You can’t perform that action at this time.
0 commit comments