mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 14:03:32 -07:00
parent
248459671e
commit
7a107584c7
129 changed files with 1138 additions and 833 deletions
|
@ -15,7 +15,7 @@ def unit(api_client: TestClient, unique_user: TestUser):
|
|||
fraction=random_bool(),
|
||||
abbreviation=f"{random_string(3)}.",
|
||||
use_abbreviation=random_bool(),
|
||||
).dict(by_alias=True)
|
||||
).model_dump(by_alias=True)
|
||||
|
||||
response = api_client.post(api_routes.units, json=data, headers=unique_user.token)
|
||||
|
||||
|
@ -30,7 +30,7 @@ def test_create_unit(api_client: TestClient, unique_user: TestUser):
|
|||
data = CreateIngredientUnit(
|
||||
name=random_string(10),
|
||||
description=random_string(10),
|
||||
).dict(by_alias=True)
|
||||
).model_dump(by_alias=True)
|
||||
|
||||
response = api_client.post(api_routes.units, json=data, headers=unique_user.token)
|
||||
assert response.status_code == 201
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue