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

fix #967 and test error to catch (#979)

* fix #967 and test error to catch

* add admin tests
This commit is contained in:
Hayden 2022-02-13 18:33:25 -09:00 committed by GitHub
parent c617251f4c
commit 14cc541f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 94 additions and 54 deletions

View file

@ -29,8 +29,15 @@ test_cases = [
MigrationTestData(typ=SupportedMigrations.mealie_alpha, archive=test_data.migrations_mealie),
]
test_ids = [
"nextcloud_archive",
"paprika_archive",
"chowdown_archive",
"mealie_alpha_archive",
]
@pytest.mark.parametrize("mig", test_cases)
@pytest.mark.parametrize("mig", test_cases, ids=test_ids)
def test_recipe_migration(api_client: TestClient, unique_user: TestUser, mig: MigrationTestData) -> None:
payload = {
"migration_type": mig.typ.value,