diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-04-10 17:57:41 +0700 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-04-10 17:57:41 +0700 |
commit | fe13a1d78c13fbe7b3027d442a6f6906440e5acc (patch) | |
tree | 4fd819484da27d9c44f6a1df1597bf5133662864 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 144648de92abea7330cf264b7608634a27bb6bdf (diff) | |
download | pleroma-fe13a1d78c13fbe7b3027d442a6f6906440e5acc.tar.gz pleroma-fe13a1d78c13fbe7b3027d442a6f6906440e5acc.zip |
adding notify_email setting for trigger emails
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index e16862a48..24e258d66 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -1910,13 +1910,14 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do conn = get(conn, "/api/v1/instance") assert result = json_response(conn, 200) + email = Pleroma.Config.get([:instance, :email]) # Note: not checking for "max_toot_chars" since it's optional assert %{ "uri" => _, "title" => _, "description" => _, "version" => _, - "email" => _, + "email" => from_config_email, "urls" => %{ "streaming_api" => _ }, @@ -1925,6 +1926,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do "languages" => _, "registrations" => _ } = result + + assert email == from_config_email end test "get instance stats", %{conn: conn} do |