mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 05:25:26 +02:00
Feature/user photo storage (#877)
* add default assets for user profile * add recipe avatar * change user_id to UUID * add profile image upload * setup image cache keys * cleanup tests and add image tests * purge user data on delete * new user repository tests * add user_id validator for int -> UUID conversion * delete depreciated route * force set content type * refactor tests to use temp directory * validate parent exists before createing * set user_id to correct type * update instruction id * reset primary key on migration
This commit is contained in:
parent
a2f8f27193
commit
ea7c4771ee
64 changed files with 433 additions and 181 deletions
14
tests/fixtures/fixture_database.py
vendored
Normal file
14
tests/fixtures/fixture_database.py
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
import pytest
|
||||
|
||||
from mealie.db.database import Database, get_database
|
||||
from mealie.db.db_setup import SessionLocal
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def database() -> Database:
|
||||
try:
|
||||
db = SessionLocal()
|
||||
yield get_database(db)
|
||||
|
||||
finally:
|
||||
db.close()
|
Loading…
Add table
Add a link
Reference in a new issue