test_helpers: Maintain alphabetical order of models in 'use_db_models'.

This commit is contained in:
Prakhar Pratyush 2023-12-01 19:39:26 +05:30 committed by Tim Abbott
parent ec36fc5605
commit 777398fc82
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,6 @@ def use_db_models(
Huddle = apps.get_model("zerver", "Huddle")
Message = apps.get_model("zerver", "Message")
MultiuseInvite = apps.get_model("zerver", "MultiuseInvite")
UserTopic = apps.get_model("zerver", "UserTopic")
PreregistrationUser = apps.get_model("zerver", "PreregistrationUser")
PushDeviceToken = apps.get_model("zerver", "PushDeviceToken")
Reaction = apps.get_model("zerver", "Reaction")
@ -633,6 +632,7 @@ def use_db_models(
UserMessage = apps.get_model("zerver", "UserMessage")
UserPresence = apps.get_model("zerver", "UserPresence")
UserProfile = apps.get_model("zerver", "UserProfile")
UserTopic = apps.get_model("zerver", "UserTopic")
zerver_models_patch = mock.patch.multiple(
"zerver.models",