Credo fixes.
This commit is contained in:
parent
59018d73c3
commit
3d62c71edf
|
@ -9,7 +9,7 @@ defmodule Pleroma.Config.Getting do
|
||||||
def get(key), do: get(key, nil)
|
def get(key), do: get(key, nil)
|
||||||
def get(key, default), do: impl().get(key, default)
|
def get(key, default), do: impl().get(key, default)
|
||||||
|
|
||||||
def impl() do
|
def impl do
|
||||||
Application.get_env(:pleroma, :config_impl, Pleroma.Config)
|
Application.get_env(:pleroma, :config_impl, Pleroma.Config)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
defmodule Pleroma.Search.DatabaseSearch do
|
defmodule Pleroma.Search.DatabaseSearch do
|
||||||
alias Pleroma.Activity
|
alias Pleroma.Activity
|
||||||
|
alias Pleroma.Config
|
||||||
alias Pleroma.Object.Fetcher
|
alias Pleroma.Object.Fetcher
|
||||||
alias Pleroma.Pagination
|
alias Pleroma.Pagination
|
||||||
alias Pleroma.User
|
alias Pleroma.User
|
||||||
alias Pleroma.Web.ActivityPub.Visibility
|
alias Pleroma.Web.ActivityPub.Visibility
|
||||||
alias Pleroma.Config
|
|
||||||
|
|
||||||
require Pleroma.Constants
|
require Pleroma.Constants
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,9 @@ defmodule Pleroma.Search.MeilisearchTest do
|
||||||
import Mox
|
import Mox
|
||||||
|
|
||||||
alias Pleroma.Search.Meilisearch
|
alias Pleroma.Search.Meilisearch
|
||||||
|
alias Pleroma.UnstubbedConfigMock, as: Config
|
||||||
alias Pleroma.Web.CommonAPI
|
alias Pleroma.Web.CommonAPI
|
||||||
alias Pleroma.Workers.SearchIndexingWorker
|
alias Pleroma.Workers.SearchIndexingWorker
|
||||||
alias Pleroma.UnstubbedConfigMock, as: Config
|
|
||||||
|
|
||||||
describe "meilisearch" do
|
describe "meilisearch" do
|
||||||
test "indexes a local post on creation" do
|
test "indexes a local post on creation" do
|
||||||
|
|
Loading…
Reference in New Issue