Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85803832
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/changelog.d/clear-config-fixups.skip b/changelog.d/clear-config-fixups.skip
new file mode 100644
index 000000000..e69de29bb
diff --git a/test/support/helpers.ex b/test/support/helpers.ex
index 7fa6c31a4..339102788 100644
--- a/test/support/helpers.ex
+++ b/test/support/helpers.ex
@@ -86,6 +86,14 @@ defmodule Pleroma.Tests.Helpers do
end
end
+ defmacro clear_config_quiet(config_path, temp_setting) do
+ quote do
+ clear_config(unquote(config_path)) do
+ Config.put(unquote(config_path), unquote(temp_setting))
+ end
+ end
+ end
+
def require_migration(migration_name) do
[{module, _}] = Code.require_file("#{migration_name}.exs", "priv/repo/migrations")
{:ok, %{migration: module}}
@@ -96,7 +104,8 @@ defmodule Pleroma.Tests.Helpers do
import Pleroma.Tests.Helpers,
only: [
clear_config: 1,
- clear_config: 2
+ clear_config: 2,
+ clear_config_quiet: 2
]
def time_travel(entity, seconds) do
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Oct 9, 3:54 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1784779
Default Alt Text
(1 KB)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment