mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-15 16:32:40 -05:00
Files
9 lines
296 B
Python
9 lines
296 B
Python
from mealie.core.config import determine_sqlite_path, settings
|
|||
|
|||
DB_URL = determine_sqlite_path(path=True, suffix="test")
|
|||
DB_URL.unlink(missing_ok=True)
|
|||
|
|||
if settings.DB_ENGINE != "postgres":
|
|||
# Monkeypatch Database Testing
|
|||
settings.DB_URL = determine_sqlite_path(path=False, suffix="test")
|