From a21a2800543660e0b48a09f025a3df548ec42fe9 Mon Sep 17 00:00:00 2001 From: Priyansh Garg Date: Wed, 23 Jun 2021 15:09:03 +0530 Subject: [PATCH] data_import: Rename mattermost_user to user_handler. This logic can be readily reused for new data import tools. --- zerver/data_import/mattermost.py | 2 +- zerver/data_import/{mattermost_user.py => user_handler.py} | 0 zerver/tests/test_mattermost_importer.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename zerver/data_import/{mattermost_user.py => user_handler.py} (100%) diff --git a/zerver/data_import/mattermost.py b/zerver/data_import/mattermost.py index 0d508e432c..e34ad3a657 100644 --- a/zerver/data_import/mattermost.py +++ b/zerver/data_import/mattermost.py @@ -35,8 +35,8 @@ from zerver.data_import.import_util import ( make_subscriber_map, make_user_messages, ) -from zerver.data_import.mattermost_user import UserHandler from zerver.data_import.sequencer import NEXT_ID, IdMapper +from zerver.data_import.user_handler import UserHandler from zerver.lib.emoji import name_to_codepoint from zerver.lib.markdown import IMAGE_EXTENSIONS from zerver.lib.upload import sanitize_name diff --git a/zerver/data_import/mattermost_user.py b/zerver/data_import/user_handler.py similarity index 100% rename from zerver/data_import/mattermost_user.py rename to zerver/data_import/user_handler.py diff --git a/zerver/tests/test_mattermost_importer.py b/zerver/tests/test_mattermost_importer.py index cb2c4e0493..a2c71f592f 100644 --- a/zerver/tests/test_mattermost_importer.py +++ b/zerver/tests/test_mattermost_importer.py @@ -23,8 +23,8 @@ from zerver.data_import.mattermost import ( reset_mirror_dummy_users, write_emoticon_data, ) -from zerver.data_import.mattermost_user import UserHandler from zerver.data_import.sequencer import IdMapper +from zerver.data_import.user_handler import UserHandler from zerver.lib.emoji import name_to_codepoint from zerver.lib.import_realm import do_import_realm from zerver.lib.test_classes import ZulipTestCase