mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
test_helpers: Fix annotation for avatar_disk_path.
This commit is contained in:
@@ -190,7 +190,7 @@ def get_test_image_file(filename):
|
|||||||
return open(os.path.join(test_avatar_dir, filename), 'rb')
|
return open(os.path.join(test_avatar_dir, filename), 'rb')
|
||||||
|
|
||||||
def avatar_disk_path(user_profile, medium=False):
|
def avatar_disk_path(user_profile, medium=False):
|
||||||
# type: (UserProfile, bool) -> str
|
# type: (UserProfile, bool) -> Text
|
||||||
avatar_url_path = avatar_url(user_profile, medium)
|
avatar_url_path = avatar_url(user_profile, medium)
|
||||||
avatar_disk_path = os.path.join(settings.LOCAL_UPLOADS_DIR, "avatars",
|
avatar_disk_path = os.path.join(settings.LOCAL_UPLOADS_DIR, "avatars",
|
||||||
avatar_url_path.split("/")[-2],
|
avatar_url_path.split("/")[-2],
|
||||||
|
|||||||
Reference in New Issue
Block a user