mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-12 02:43:12 -05:00
Refactor + New Docker File (#105)
* dev-bug: fixed vscode freezes * test: refactor database init to support tests * mealplan CRUD testing * restructure test folder * git attributes * tests: migration, settings, theme routes testing * docker-file shrink * rebuild * refactor: moving directories around * adding funding Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
import json
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
from app_config import BASE_DIR, MIGRATION_DIR
|
||||
from tests.test_services.test_migrations.test_nextcloud import NEXTCLOUD_DIR
|
||||
|
||||
TEST_DIR = BASE_DIR.joinpath("tests")
|
||||
|
||||
import pytest
|
||||
from app_config import MIGRATION_DIR
|
||||
from tests.test_config import TEST_NEXTCLOUD_DIR
|
||||
|
||||
#! Broken
|
||||
# def test_import_chowdown_recipes(api_client):
|
||||
@@ -28,13 +24,9 @@ import pytest
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def nextcloud_zip():
|
||||
zip = TEST_DIR.joinpath(
|
||||
"test_services/test_migrations/data/nextcloud_recipes/nextcloud.zip"
|
||||
)
|
||||
zip = TEST_NEXTCLOUD_DIR.joinpath("nextcloud.zip")
|
||||
|
||||
zip_copy = TEST_DIR.joinpath(
|
||||
"test_services/test_migrations/data/nextcloud_recipes/new_nextcloud.zip"
|
||||
)
|
||||
zip_copy = TEST_NEXTCLOUD_DIR.joinpath("new_nextcloud.zip")
|
||||
|
||||
shutil.copy(zip, zip_copy)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user