projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#3213] ActivityPub: implemented subqueries-based hashtags filtering, removed aggrega...
[akkoma]
/
test
/
pleroma
/
web
/
mastodon_api
/
views
/
poll_view_test.exs
diff --git
a/test/pleroma/web/mastodon_api/views/poll_view_test.exs
b/test/pleroma/web/mastodon_api/views/poll_view_test.exs
index c655ca438ff6351e4aca0488f8a60c3762408515..a8600e1c28f6eb10d09293975833c2645c5d9a0c 100644
(file)
--- a/
test/pleroma/web/mastodon_api/views/poll_view_test.exs
+++ b/
test/pleroma/web/mastodon_api/views/poll_view_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
@@
-29,7
+29,7
@@
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
}
})
}
})
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
expected = %{
emojis: [],
expected = %{
emojis: [],
@@
-72,7
+72,7
@@
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
voter = insert(:user)
voter = insert(:user)
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
{:ok, _votes, object} = CommonAPI.vote(voter, object, [0, 1])
{:ok, _votes, object} = CommonAPI.vote(voter, object, [0, 1])
@@
-98,7
+98,7
@@
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
}
})
}
})
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
assert %{emojis: [%{shortcode: "blank"}]} = PollView.render("show.json", %{object: object})
end
assert %{emojis: [%{shortcode: "blank"}]} = PollView.render("show.json", %{object: object})
end
@@
-117,7
+117,7
@@
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
}
})
}
})
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
{:ok, _, object} = CommonAPI.vote(other_user, object, [1, 2])
{:ok, _, object} = CommonAPI.vote(other_user, object, [1, 2])
@@
-129,7
+129,7
@@
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
end
test "does not crash on polls with no end date" do
end
test "does not crash on polls with no end date" do
- object = Object.normalize("https://skippers-bin.com/notes/7x9tmrp97i")
+ object = Object.normalize("https://skippers-bin.com/notes/7x9tmrp97i"
, fetch: true
)
result = PollView.render("show.json", %{object: object})
assert result[:expires_at] == nil
result = PollView.render("show.json", %{object: object})
assert result[:expires_at] == nil
@@
-153,7
+153,7
@@
defmodule Pleroma.Web.MastodonAPI.PollViewTest do
}
})
}
})
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
assert %{
options: [
assert %{
options: [