diff options
author | lain <lain@soykaf.club> | 2020-05-25 13:57:27 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-25 13:57:27 +0200 |
commit | ee35bb5ac287e0ff913685256a826e759add3fb9 (patch) | |
tree | 971031903f987e4b70768ac1f91666fdfe6a10b4 /test/tasks | |
parent | 578ed3a37f28ecbd9fd976c54ee53e8ed2a6adff (diff) | |
parent | ec470c4c7717dc9479df9e7b70f9805dcf2f5e08 (diff) | |
download | pleroma-ee35bb5ac287e0ff913685256a826e759add3fb9.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'test/tasks')
-rw-r--r-- | test/tasks/instance_test.exs | 3 | ||||
-rw-r--r-- | test/tasks/user_test.exs | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/tasks/instance_test.exs b/test/tasks/instance_test.exs index f6a4ba508..3b4c041d9 100644 --- a/test/tasks/instance_test.exs +++ b/test/tasks/instance_test.exs @@ -63,7 +63,7 @@ defmodule Pleroma.InstanceTest do "--uploads-dir", "test/uploads", "--static-dir", - "instance/static/" + "./test/../test/instance/static/" ]) end @@ -83,6 +83,7 @@ defmodule Pleroma.InstanceTest do assert generated_config =~ "configurable_from_database: true" assert generated_config =~ "http: [ip: {127, 0, 0, 1}, port: 4000]" assert File.read!(tmp_path() <> "setup.psql") == generated_setup_psql() + assert File.exists?(Path.expand("./test/instance/static/robots.txt")) end defp generated_setup_psql do diff --git a/test/tasks/user_test.exs b/test/tasks/user_test.exs index ca8daae44..b55aa1cdb 100644 --- a/test/tasks/user_test.exs +++ b/test/tasks/user_test.exs @@ -91,6 +91,7 @@ defmodule Mix.Tasks.Pleroma.UserTest do describe "running rm" do test "user is deleted" do + clear_config([:instance, :federating], true) user = insert(:user) with_mock Pleroma.Web.Federator, @@ -108,8 +109,10 @@ defmodule Mix.Tasks.Pleroma.UserTest do test "a remote user's create activity is deleted when the object has been pruned" do user = insert(:user) - {:ok, post} = CommonAPI.post(user, %{status: "uguu"}) + + clear_config([:instance, :federating], true) + object = Object.normalize(post) Object.prune(object) |