Migration redesign (#119)

* migration redesign init

* new color picker

* changelog

* added UI language selection

* fix layout issue on recipe editor

* remove git as dependency

* added UI editor for original URL

* CI/CD Tests

* test: fixed migration routes

Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-01-23 19:53:39 -09:00
committed by GitHub
parent 138093d062
commit 079ebd8ee1
32 changed files with 549 additions and 367 deletions

View File

@@ -36,17 +36,17 @@ def nextcloud_zip():
def test_upload_nextcloud_zip(api_client, nextcloud_zip):
response = api_client.post(
"/api/migration/upload/", files={"archive": nextcloud_zip.open("rb")}
"/api/migrations/nextcloud/upload/", files={"archive": nextcloud_zip.open("rb")}
)
assert response.status_code == 200
assert MIGRATION_DIR.joinpath(nextcloud_zip.name).is_file()
assert MIGRATION_DIR.joinpath("nextcloud", nextcloud_zip.name).is_file()
def test_import_nextcloud_directory(api_client, nextcloud_zip):
selection = nextcloud_zip.name
response = api_client.post(f"/api/migration/nextcloud/{selection}/import/")
response = api_client.post(f"/api/migrations/nextcloud/{selection}/import/")
assert response.status_code == 200
@@ -60,7 +60,7 @@ def test_import_nextcloud_directory(api_client, nextcloud_zip):
def test_delete_migration_data(api_client, nextcloud_zip):
selection = nextcloud_zip.name
response = api_client.delete(f"/api/migration/{selection}/delete/")
response = api_client.delete(f"/api/migrations/nextcloud/{selection}/delete/")
assert response.status_code == 200
assert not MIGRATION_DIR.joinpath(nextcloud_zip.name).is_file()