Merge branch 'test/fix-config-setting-in-user-test' into 'develop'
Fix config setting to not affect other tests See merge request pleroma/pleroma!2615
This commit is contained in:
commit
beeeed5b58
@ -1802,7 +1802,7 @@ defmodule Pleroma.UserTest do
|
|||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
assert User.avatar_url(user) =~ "/images/avi.png"
|
assert User.avatar_url(user) =~ "/images/avi.png"
|
||||||
|
|
||||||
Pleroma.Config.put([:assets, :default_user_avatar], "avatar.png")
|
clear_config([:assets, :default_user_avatar], "avatar.png")
|
||||||
|
|
||||||
user = User.get_cached_by_nickname_or_id(user.nickname)
|
user = User.get_cached_by_nickname_or_id(user.nickname)
|
||||||
assert User.avatar_url(user) =~ "avatar.png"
|
assert User.avatar_url(user) =~ "avatar.png"
|
||||||
|
Loading…
Reference in New Issue
Block a user