mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 00:14:48 +00:00
test(export): add basic test for ExportController
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
a76b1ca66d
commit
02098bbb3d
1 changed files with 13 additions and 0 deletions
13
test/web/controllers/export_controller_test.exs
Normal file
13
test/web/controllers/export_controller_test.exs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# Portions of this file are derived from Pleroma:
|
||||||
|
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social>
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
# Upstream: https://git.pleroma.social/pleroma/pleroma/blob/develop/test/web/web_finger/web_finger_test.exs
|
||||||
|
|
||||||
|
defmodule Mobilizon.Web.ExportControllerTest do
|
||||||
|
use Mobilizon.Web.ConnCase
|
||||||
|
|
||||||
|
test "GET /.well-known/webfinger with no query", %{conn: conn} do
|
||||||
|
conn = get(conn, "/exports/not_existing/whatever")
|
||||||
|
assert response(conn, 404) == "Export to format not_existing is not enabled on this instance"
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue