summaryrefslogtreecommitdiff
path: root/test/pleroma/release_tasks_test.exs
blob: 5a4293189ae87ad5e5ec5553d2593fcfc0e366f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.ReleaseTaskTest do
  use Pleroma.DataCase, async: true

  alias Pleroma.ReleaseTasks

  test "finding the module" do
    task = "search.meilisearch"
    assert Mix.Tasks.Pleroma.Search.Meilisearch == ReleaseTasks.find_module(task)

    task = "user"
    assert Mix.Tasks.Pleroma.User == ReleaseTasks.find_module(task)

    refute ReleaseTasks.find_module("doesnt.exist")
  end
end