projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into object-normalize...
[akkoma]
/
test
/
pleroma
/
web
/
activity_pub
/
transmogrifier
/
audio_handling_test.exs
diff --git
a/test/pleroma/web/activity_pub/transmogrifier/audio_handling_test.exs
b/test/pleroma/web/activity_pub/transmogrifier/audio_handling_test.exs
index 0636d00c5bd5b9cf646dee332df67388459cc286..ac80d0ddd6f5874d5b45c173e892681fab01758f 100644
(file)
--- a/
test/pleroma/web/activity_pub/transmogrifier/audio_handling_test.exs
+++ b/
test/pleroma/web/activity_pub/transmogrifier/audio_handling_test.exs
@@
-35,7
+35,7
@@
defmodule Pleroma.Web.ActivityPub.Transmogrifier.AudioHandlingTest do
{:ok, %Activity{local: false} = activity} = Transmogrifier.handle_incoming(data)
{:ok, %Activity{local: false} = activity} = Transmogrifier.handle_incoming(data)
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
assert object.data["title"] == "lain radio episode 1"
assert object.data["artist"] == "lain"
assert object.data["title"] == "lain radio episode 1"
assert object.data["artist"] == "lain"
@@
-48,15
+48,16
@@
defmodule Pleroma.Web.ActivityPub.Transmogrifier.AudioHandlingTest do
%{url: "https://channels.tests.funkwhale.audio/federation/actors/compositions"} ->
%Tesla.Env{
status: 200,
%{url: "https://channels.tests.funkwhale.audio/federation/actors/compositions"} ->
%Tesla.Env{
status: 200,
- body: File.read!("test/fixtures/tesla_mock/funkwhale_channel.json")
+ body: File.read!("test/fixtures/tesla_mock/funkwhale_channel.json"),
+ headers: HttpRequestMock.activitypub_object_headers()
}
end)
}
end)
- data = File.read!("test/fixtures/tesla_mock/funkwhale_create_audio.json") |>
Poi
son.decode!()
+ data = File.read!("test/fixtures/tesla_mock/funkwhale_create_audio.json") |>
Ja
son.decode!()
{:ok, %Activity{local: false} = activity} = Transmogrifier.handle_incoming(data)
{:ok, %Activity{local: false} = activity} = Transmogrifier.handle_incoming(data)
- assert object = Object.normalize(activity, false)
+ assert object = Object.normalize(activity, f
etch: f
alse)
assert object.data["to"] == ["https://www.w3.org/ns/activitystreams#Public"]
assert object.data["to"] == ["https://www.w3.org/ns/activitystreams#Public"]
@@
-69,6
+70,7
@@
defmodule Pleroma.Web.ActivityPub.Transmogrifier.AudioHandlingTest do
"mediaType" => "audio/ogg",
"type" => "Link",
"name" => nil,
"mediaType" => "audio/ogg",
"type" => "Link",
"name" => nil,
+ "blurhash" => nil,
"url" => [
%{
"href" =>
"url" => [
%{
"href" =>