1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-04 21:15:22 +02:00

feature/category-tag-crud (#354)

* update tag route

* search.and

* offset for mobile

* relative imports

* get settings

* new page

* category/tag CRUD

* bulk assign frontend

* Bulk assign

* debounce search

* remove dev data

* recipe store refactor

* fix mobile view

* fix failing tests

* commit test data

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-04-27 11:17:00 -08:00 committed by GitHub
parent f748bbba68
commit 846d1eda5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 1028 additions and 145 deletions

View file

@ -8,18 +8,19 @@ from tests.app_routes import AppRoutes
@pytest.fixture
def backup_data():
return {
"name": "dev_sample_data_2021-Feb-13.zip",
"force": False,
"name": "test_backup_2021-Apr-27.zip",
"force": True,
"recipes": True,
"settings": False, # ! Broken
"themes": True,
"groups": True,
"users": True,
"pages": True,
}
def test_import(api_client: TestClient, api_routes: AppRoutes, backup_data, token):
import_route = api_routes.backups_file_name_import("dev_sample_data_2021-Feb-13.zip")
import_route = api_routes.backups_file_name_import("test_backup_2021-Apr-27.zip")
response = api_client.post(import_route, json=backup_data, headers=token)
assert response.status_code == 200
for _, value in json.loads(response.content).items():