1 defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
2 use Pleroma.Web.ConnCase
6 describe "POST /api/pleroma/follow_import" do
7 test "it returns HTTP 200", %{conn: conn} do
13 |> assign(:user, user1)
14 |> post("/api/pleroma/follow_import", %{"list" => "#{user2.ap_id}"})
17 assert response == "job started"
21 describe "POST /api/pleroma/blocks_import" do
22 test "it returns HTTP 200", %{conn: conn} do
28 |> assign(:user, user1)
29 |> post("/api/pleroma/blocks_import", %{"list" => "#{user2.ap_id}"})
32 assert response == "job started"
36 describe "GET /api/pleroma/frontent_configurations" do
37 test "returns everything in :pleroma, :frontend_configurations", %{conn: conn} do
48 Pleroma.Config.put(:frontend_configurations, config)
52 |> get("/api/pleroma/frontend_configurations")
55 assert response == Jason.encode!(config |> Enum.into(%{})) |> Jason.decode!()