mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-14 18:57:44 -07:00
parent
248459671e
commit
7a107584c7
129 changed files with 1138 additions and 833 deletions
|
@ -17,7 +17,7 @@ class TestModel2(MealieModel):
|
|||
def test_camelize_variables():
|
||||
model = TestModel(long_name="Hello", long_int=1, long_float=1.1)
|
||||
|
||||
as_dict = model.dict(by_alias=True)
|
||||
as_dict = model.model_dump(by_alias=True)
|
||||
|
||||
assert as_dict["longName"] == "Hello"
|
||||
assert as_dict["longInt"] == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue