setup do: clear_config([:feed])
test "gets a feed (ATOM)", %{conn: conn} do
setup do: clear_config([:feed])
test "gets a feed (ATOM)", %{conn: conn} do
"These are public toots tagged with #pleromaart. You can interact with them if you have an account anywhere in the fediverse."
assert xpath(xml, ~x"//channel/link/text()") ==
"These are public toots tagged with #pleromaart. You can interact with them if you have an account anywhere in the fediverse."
assert xpath(xml, ~x"//channel/link/text()") ==
assert xpath(xml, ~x"//channel/item/title/text()"l) == [
'42 This is :moominmamm...',
assert xpath(xml, ~x"//channel/item/title/text()"l) == [
'42 This is :moominmamm...',
- obj1 = Object.normalize(activity1)
- obj2 = Object.normalize(activity2)
+ obj1 = Object.normalize(activity1, fetch: false)
+ obj2 = Object.normalize(activity2, fetch: false)
assert xpath(xml, ~x"//channel/item/description/text()"sl) == [
HtmlEntities.decode(FeedView.activity_content(obj2.data)),
assert xpath(xml, ~x"//channel/item/description/text()"sl) == [
HtmlEntities.decode(FeedView.activity_content(obj2.data)),