74e13682cb
* move data access layer * rename dal -> repo
14 lines
295 B
Python
14 lines
295 B
Python
import pytest
|
|
|
|
from mealie.db.db_setup import SessionLocal
|
|
from mealie.repos.all_repositories import AllRepositories, get_repositories
|
|
|
|
|
|
@pytest.fixture()
|
|
def database() -> AllRepositories:
|
|
try:
|
|
db = SessionLocal()
|
|
yield get_repositories(db)
|
|
|
|
finally:
|
|
db.close()
|