summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/views
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2020-05-18 18:46:04 +0300
committereugenijm <eugenijm@protonmail.com>2020-06-14 18:27:11 +0300
commitb15cfc3d365dcfa5f99159fe06e29de6f8aceb4f (patch)
tree156ff3c3c0fb6eb12064e536ae5a754048b48af4 /test/web/mastodon_api/views
parent271ea5068f4e3b901cb3f682e132378246daf452 (diff)
downloadpleroma-b15cfc3d365dcfa5f99159fe06e29de6f8aceb4f.tar.gz
pleroma-b15cfc3d365dcfa5f99159fe06e29de6f8aceb4f.zip
Mastodon API: ensure the notification endpoint doesn't return less than the requested amount of records unless it's the last page
Diffstat (limited to 'test/web/mastodon_api/views')
-rw-r--r--test/web/mastodon_api/views/notification_view_test.exs4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/web/mastodon_api/views/notification_view_test.exs b/test/web/mastodon_api/views/notification_view_test.exs
index b2fa5b302..9c399b2df 100644
--- a/test/web/mastodon_api/views/notification_view_test.exs
+++ b/test/web/mastodon_api/views/notification_view_test.exs
@@ -139,9 +139,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do
test_notifications_rendering([notification], followed, [expected])
User.perform(:delete, follower)
- notification = Notification |> Repo.one() |> Repo.preload(:activity)
-
- test_notifications_rendering([notification], followed, [])
+ refute Repo.one(Notification)
end
@tag capture_log: true