mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-20 13:49:40 +02:00
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")
|