diff options
author | Jeff Becker <jeff@i2p.rocks> | 2018-01-24 13:15:54 -0500 |
---|---|---|
committer | Jeff Becker <jeff@i2p.rocks> | 2018-01-24 13:15:54 -0500 |
commit | dffde6631d105949b62c1ff27c22fefcb873b2e8 (patch) | |
tree | f486f66ae4067ec1bc0dec7f265765b6d35a9c58 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 1e185b9301ec85cd2aaeb1faf075aaa86f733373 (diff) | |
parent | 0f722a8c223c1953c9c9fb45e73cc9ace92839e2 (diff) | |
download | pleroma-dffde6631d105949b62c1ff27c22fefcb873b2e8.tar.gz pleroma-dffde6631d105949b62c1ff27c22fefcb873b2e8.zip |
Merge remote-tracking branch 'upstream/develop' into pr-upstream-http-proxy
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 79ad671d9..93b29dfae 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -586,11 +586,14 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do {:ok, _} = TwitterAPI.create_status(user, %{"status" => "cofe"}) + Pleroma.Stats.update_stats() + conn = conn |> get("/api/v1/instance") assert result = json_response(conn, 200) assert result["stats"]["user_count"] == 2 + assert result["stats"]["status_count"] == 1 end end |