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

feat: Add recipekeeper migration (#3642)

This commit is contained in:
Jonathan Beaulieu 2024-05-31 02:58:04 -07:00 committed by GitHub
parent a7fcb6c84d
commit f4f2b863e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 201 additions and 53 deletions

View file

@ -30,6 +30,7 @@ test_cases = [
MigrationTestData(typ=SupportedMigrations.tandoor, archive=test_data.migrations_tandoor),
MigrationTestData(typ=SupportedMigrations.plantoeat, archive=test_data.migrations_plantoeat),
MigrationTestData(typ=SupportedMigrations.myrecipebox, archive=test_data.migrations_myrecipebox),
MigrationTestData(typ=SupportedMigrations.recipekeeper, archive=test_data.migrations_recipekeeper),
]
test_ids = [
@ -41,6 +42,7 @@ test_ids = [
"tandoor_archive",
"plantoeat_archive",
"myrecipebox_csv",
"recipekeeper_archive",
]
@ -55,7 +57,10 @@ def test_recipe_migration(api_client: TestClient, unique_user: TestUser, mig: Mi
}
response = api_client.post(
api_routes.groups_migrations, data=payload, files=file_payload, headers=unique_user.token
api_routes.groups_migrations,
data=payload,
files=file_payload,
headers=unique_user.token,
)
assert response.status_code == 200
@ -117,7 +122,10 @@ def test_bad_mealie_alpha_data_is_ignored(api_client: TestClient, unique_user: T
}
response = api_client.post(
api_routes.groups_migrations, data=payload, files=file_payload, headers=unique_user.token
api_routes.groups_migrations,
data=payload,
files=file_payload,
headers=unique_user.token,
)
assert response.status_code == 200