1
0
Fork 0
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:
Tom Brennan 2024-10-13 09:04:29 -04:00 committed by GitHub
parent 3aea229f2d
commit 02c0fe993b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 279 additions and 57 deletions

View file

@ -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()