summaryrefslogtreecommitdiff
path: root/test/tasks
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-03-20 22:08:34 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-03-20 22:08:34 +0400
commit80e15716102e03323b117ade919035402cc7408f (patch)
tree60b57dde12b4feb693a6383b71f813561a48a928 /test/tasks
parent5ad54d1bd556f3dc957aa1d2ebe6314618e75399 (diff)
parentd74405fc1a27bb3d13f4ead2bc2369f23827a781 (diff)
downloadpleroma-80e15716102e03323b117ade919035402cc7408f.tar.gz
pleroma-80e15716102e03323b117ade919035402cc7408f.zip
Merge branch 'develop' into global-status-expiration
Diffstat (limited to 'test/tasks')
-rw-r--r--test/tasks/config_test.exs4
-rw-r--r--test/tasks/robots_txt_test.exs2
2 files changed, 2 insertions, 4 deletions
diff --git a/test/tasks/config_test.exs b/test/tasks/config_test.exs
index a6c0de351..3dee4f082 100644
--- a/test/tasks/config_test.exs
+++ b/test/tasks/config_test.exs
@@ -20,9 +20,7 @@ defmodule Mix.Tasks.Pleroma.ConfigTest do
:ok
end
- clear_config_all(:configurable_from_database) do
- Pleroma.Config.put(:configurable_from_database, true)
- end
+ setup_all do: clear_config(:configurable_from_database, true)
test "error if file with custom settings doesn't exist" do
Mix.Tasks.Pleroma.Config.migrate_to_db("config/not_existance_config_file.exs")
diff --git a/test/tasks/robots_txt_test.exs b/test/tasks/robots_txt_test.exs
index e03c9c192..7040a0e4e 100644
--- a/test/tasks/robots_txt_test.exs
+++ b/test/tasks/robots_txt_test.exs
@@ -7,7 +7,7 @@ defmodule Mix.Tasks.Pleroma.RobotsTxtTest do
use Pleroma.Tests.Helpers
alias Mix.Tasks.Pleroma.RobotsTxt
- clear_config([:instance, :static_dir])
+ setup do: clear_config([:instance, :static_dir])
test "creates new dir" do
path = "test/fixtures/new_dir/"