Remove IO.inspects

This commit is contained in:
FloatingGhost 2023-08-04 12:01:52 +01:00
parent f4fe4fcbcc
commit fe8c166b8f
3 changed files with 4 additions and 9 deletions

View File

@ -184,12 +184,9 @@ def update_file(%Pack{} = pack, shortcode, new_shortcode, new_filename, force) d
@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))

View File

@ -34,9 +34,7 @@ def perform(%Plug.Conn{assigns: assigns} = conn, %{scopes: scopes} = options) 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")

View File

@ -50,13 +50,13 @@ test "with errors" 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