Add a failing test
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
b0ae451942
commit
c772f9b40a
1 changed files with 13 additions and 9 deletions
|
|
@ -907,6 +907,9 @@ defmodule Pleroma.Web.MastodonAPI.TimelineControllerTest do
|
||||||
{:ok, activity_test1} = CommonAPI.post(user, %{status: "#test #test1"})
|
{:ok, activity_test1} = CommonAPI.post(user, %{status: "#test #test1"})
|
||||||
{:ok, activity_none} = CommonAPI.post(user, %{status: "#test #none"})
|
{:ok, activity_none} = CommonAPI.post(user, %{status: "#test #none"})
|
||||||
|
|
||||||
|
for hashtag_timeline_mode <- [:enabled, :disabled] do
|
||||||
|
clear_config([:features, :improved_hashtag_timeline], hashtag_timeline_mode)
|
||||||
|
|
||||||
any_test = get(conn, "/api/v1/timelines/tag/test?any[]=test1")
|
any_test = get(conn, "/api/v1/timelines/tag/test?any[]=test1")
|
||||||
|
|
||||||
[status_none, status_test1, status_test] = json_response_and_validate_schema(any_test, :ok)
|
[status_none, status_test1, status_test] = json_response_and_validate_schema(any_test, :ok)
|
||||||
|
|
@ -923,6 +926,7 @@ defmodule Pleroma.Web.MastodonAPI.TimelineControllerTest do
|
||||||
|
|
||||||
assert [status_none] == json_response_and_validate_schema(all_test, :ok)
|
assert [status_none] == json_response_and_validate_schema(all_test, :ok)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
test "muted emotions", %{conn: conn} do
|
test "muted emotions", %{conn: conn} do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue