From 02d00eece001c98b96522c2d5e96f79b69f70212 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 20 Nov 2019 15:43:09 +0100 Subject: [PATCH] migrate -> run --- src/yunohost/app.py | 2 +- .../data_migrations/0013_futureproof_apps_catalog_system.py | 2 +- src/yunohost/tests/test_appscatalog.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 58676532c..b0606788b 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -2637,7 +2637,7 @@ def _read_apps_catalog_list(): if os.path.exists('/etc/yunohost/appslists.json'): from yunohost.tools import _get_migration_by_name migration = _get_migration_by_name("futureproof_apps_catalog_system") - migration.migrate() + migration.run() try: list_ = read_yaml(APPS_CATALOG_CONF) diff --git a/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py b/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py index 2215d4681..e5e1f43de 100644 --- a/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py +++ b/src/yunohost/data_migrations/0013_futureproof_apps_catalog_system.py @@ -21,7 +21,7 @@ class MyMigration(Migration): "Migrate to the new future-proof apps catalog system" - def migrate(self): + def run(self): if not os.path.exists(LEGACY_APPS_CATALOG_CONF): logger.info("No need to do anything") diff --git a/src/yunohost/tests/test_appscatalog.py b/src/yunohost/tests/test_appscatalog.py index 450c2846e..613b59012 100644 --- a/src/yunohost/tests/test_appscatalog.py +++ b/src/yunohost/tests/test_appscatalog.py @@ -318,7 +318,7 @@ def test_apps_catalog_migrate_legacy_explicitly(): # Mock the server response with a dummy apps catalog m.register_uri("GET", APPS_CATALOG_DEFAULT_URL_FULL, text=DUMMY_APP_CATALOG) - migration.migrate() + migration.run() # Old conf shouldnt be there anymore (got renamed to .old) assert not os.path.exists("/etc/yunohost/appslists.json")