projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b004c42
)
Fix config setting to not affect other tests
author
Roman Chvanikov
<chvanikoff@pm.me>
Sat, 30 May 2020 13:47:09 +0000
(16:47 +0300)
committer
Roman Chvanikov
<chvanikoff@pm.me>
Sat, 30 May 2020 13:47:09 +0000
(16:47 +0300)
test/user_test.exs
patch
|
blob
|
history
diff --git
a/test/user_test.exs
b/test/user_test.exs
index 3556ef1b4de5ecc17e149bd669d801071b49ed95..6b344158d8de9cdd05f0bd9f3ff48f3f8709728e 100644
(file)
--- a/
test/user_test.exs
+++ b/
test/user_test.exs
@@
-1802,7
+1802,7
@@
defmodule Pleroma.UserTest do
user = insert(:user)
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)
assert User.avatar_url(user) =~ "avatar.png"