mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
database init
This commit is contained in:
parent
2ac362ff53
commit
395addcc8b
2 changed files with 8 additions and 8 deletions
12
.github/workflows/test-all.yml
vendored
12
.github/workflows/test-all.yml
vendored
|
@ -46,12 +46,12 @@ jobs:
|
|||
#----------------------------------------------
|
||||
# load cached venv if cache exists
|
||||
#----------------------------------------------
|
||||
# - name: Load cached venv
|
||||
# id: cached-poetry-dependencies
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: .venv
|
||||
# key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
|
||||
- name: Load cached venv
|
||||
id: cached-poetry-dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: .venv
|
||||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
|
||||
#----------------------------------------------
|
||||
# install dependencies if cache does not exist
|
||||
#----------------------------------------------
|
||||
|
|
|
@ -6,14 +6,14 @@ import requests
|
|||
from fastapi.testclient import TestClient
|
||||
from mealie.app import app
|
||||
from mealie.db.db_setup import SessionLocal, generate_session
|
||||
from mealie.db.init_db import init_db
|
||||
from mealie.db.init_db import main
|
||||
from pytest import fixture
|
||||
|
||||
from tests.app_routes import AppRoutes
|
||||
from tests.test_config import TEST_DATA
|
||||
from tests.utils.recipe_data import build_recipe_store, get_raw_no_image, get_raw_recipe
|
||||
|
||||
init_db(SessionLocal())
|
||||
main()
|
||||
|
||||
|
||||
def override_get_db():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue