Remove IO.inspects
This commit is contained in:
parent
f4fe4fcbcc
commit
fe8c166b8f
3 changed files with 4 additions and 9 deletions
|
@ -184,12 +184,9 @@ defmodule Pleroma.Emoji.Pack do
|
|||
@spec import_from_filesystem() :: {:ok, [String.t()]} | {:error, File.posix() | atom()}
|
||||
def import_from_filesystem do
|
||||
emoji_path = emoji_path()
|
||||
IO.inspect(emoji_path)
|
||||
|
||||
with {:ok, %{access: :read_write}} <- File.stat(emoji_path),
|
||||
{:ok, results} <- File.ls(emoji_path) do
|
||||
IO.inspect(results)
|
||||
|
||||
names =
|
||||
results
|
||||
|> Enum.map(&Path.join(emoji_path, &1))
|
||||
|
|
|
@ -34,9 +34,7 @@ defmodule Pleroma.Web.Plugs.OAuthScopesPlug do
|
|||
permissions = Enum.join(missing_scopes, " #{op} ")
|
||||
|
||||
error_message =
|
||||
dgettext("errors", "Insufficient permissions: %{permissions}.",
|
||||
permissions: permissions
|
||||
)
|
||||
dgettext("errors", "Insufficient permissions: %{permissions}.", permissions: permissions)
|
||||
|
||||
conn
|
||||
|> put_resp_content_type("application/json")
|
||||
|
|
|
@ -50,13 +50,13 @@ defmodule Mix.Tasks.Pleroma.AppTest do
|
|||
defp assert_app(name, redirect, scopes) do
|
||||
app = Repo.get_by(Pleroma.Web.OAuth.App, client_name: name)
|
||||
|
||||
assert_receive {:mix_shell, :info, [message]}
|
||||
assert_receive {:mix_shell, :info, [message]}, 1_000
|
||||
assert message == "#{name} successfully created:"
|
||||
|
||||
assert_receive {:mix_shell, :info, [message]}
|
||||
assert_receive {:mix_shell, :info, [message]}, 1_000
|
||||
assert message == "App client_id: #{app.client_id}"
|
||||
|
||||
assert_receive {:mix_shell, :info, [message]}
|
||||
assert_receive {:mix_shell, :info, [message]}, 1_000
|
||||
assert message == "App client_secret: #{app.client_secret}"
|
||||
|
||||
assert app.scopes == scopes
|
||||
|
|
Loading…
Reference in a new issue