mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
feat: adding the rest ofthe nutrition properties from schema.org (#4301)
This commit is contained in:
parent
3aea229f2d
commit
02c0fe993b
16 changed files with 279 additions and 57 deletions
13
tests/fixtures/fixture_users.py
vendored
13
tests/fixtures/fixture_users.py
vendored
|
@ -173,8 +173,7 @@ def g2_user(session: Session, admin_token, api_client: TestClient):
|
|||
pass
|
||||
|
||||
|
||||
@fixture(scope="module")
|
||||
def unique_user(session: Session, api_client: TestClient):
|
||||
def _unique_user(session: Session, api_client: TestClient):
|
||||
registration = utils.user_registration_factory()
|
||||
response = api_client.post("/api/users/register", json=registration.model_dump(by_alias=True))
|
||||
assert response.status_code == 201
|
||||
|
@ -213,6 +212,16 @@ def unique_user(session: Session, api_client: TestClient):
|
|||
pass
|
||||
|
||||
|
||||
@fixture(scope="function")
|
||||
def unique_user_fn_scoped(session: Session, api_client: TestClient):
|
||||
yield from _unique_user(session, api_client)
|
||||
|
||||
|
||||
@fixture(scope="module")
|
||||
def unique_user(session: Session, api_client: TestClient):
|
||||
yield from _unique_user(session, api_client)
|
||||
|
||||
|
||||
@fixture(scope="module")
|
||||
def user_tuple(session: Session, admin_token, api_client: TestClient) -> Generator[list[utils.TestUser], None, None]:
|
||||
group_name = utils.random_string()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue