projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'security/fav-reblog-access-control' into 'develop'
[akkoma]
/
test
/
upload
/
filter_test.exs
diff --git
a/test/upload/filter_test.exs
b/test/upload/filter_test.exs
index 640cd71079997402c1572af6af4e0838cc089e8d..03887c06aef78e5e2970725f54c3023be0772bed 100644
(file)
--- a/
test/upload/filter_test.exs
+++ b/
test/upload/filter_test.exs
@@
-8,13
+8,7
@@
defmodule Pleroma.Upload.FilterTest do
alias Pleroma.Config
alias Pleroma.Upload.Filter
alias Pleroma.Config
alias Pleroma.Upload.Filter
- setup do
- custom_filename = Config.get([Pleroma.Upload.Filter.AnonymizeFilename, :text])
-
- on_exit(fn ->
- Config.put([Pleroma.Upload.Filter.AnonymizeFilename, :text], custom_filename)
- end)
- end
+ clear_config([Pleroma.Upload.Filter.AnonymizeFilename, :text])
test "applies filters" do
Config.put([Pleroma.Upload.Filter.AnonymizeFilename, :text], "custom-file.png")
test "applies filters" do
Config.put([Pleroma.Upload.Filter.AnonymizeFilename, :text], "custom-file.png")