Add test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
32994bb9c3
commit
9932aeffc5
3 changed files with 51 additions and 2 deletions
18
test/support/language_detector_mock.ex
Normal file
18
test/support/language_detector_mock.ex
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Pleroma: A lightweight social networking server
|
||||
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
defmodule LanguageDetectorMock do
|
||||
alias Pleroma.Language.LanguageDetector.Provider
|
||||
|
||||
@behaviour Provider
|
||||
|
||||
@impl Provider
|
||||
def missing_dependencies, do: []
|
||||
|
||||
@impl Provider
|
||||
def configured?, do: true
|
||||
|
||||
@impl Provider
|
||||
def detect(text), do: "fr"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue