fix tests broken by relay defaults changing #314

Merged
floatingghost merged 6 commits from fix-relay-default-tests into develop 2022-11-26 20:45:47 +00:00
2 changed files with 10 additions and 7 deletions
Showing only changes of commit e27d5fe540 - Show all commits

View file

@ -113,9 +113,11 @@ def run(["reset_password", nickname]) do
{:ok, token} <- Pleroma.PasswordResetToken.create_token(user) do
shell_info("Generated password reset token for #{user.nickname}")
IO.puts("URL: #{Pleroma.Web.Router.Helpers.reset_password_url(Pleroma.Web.Endpoint,
:reset,
token.token)}")
IO.puts(
"URL: #{Pleroma.Web.Router.Helpers.reset_password_url(Pleroma.Web.Endpoint,
:reset,
token.token)}"
)
else
_ ->
shell_error("No local user #{nickname}")

View file

@ -10,10 +10,11 @@ defmodule Pleroma.Web.MediaProxy.Invalidation.ScriptTest do
test "it logs error when script is not found" do
assert capture_log(fn ->
assert {:error, _} = Invalidation.Script.purge(
["http://example.com/media/example.jpg"],
script_path: "./example"
)
assert {:error, _} =
Invalidation.Script.purge(
["http://example.com/media/example.jpg"],
script_path: "./example"
)
end) =~ "Error while cache purge: %ErlangError{original: :enoent"
capture_log(fn ->