akkoma/test/support/matching_helpers.ex

10 lines
257 B
Elixir
Raw Normal View History

2024-06-30 03:25:55 +00:00
defmodule Pleroma.Test.MatchingHelpers do
import ExUnit.Assertions
@assoc_fields [
:signing_key
]
def assert_user_match(actor1, actor2) do
assert Ecto.reset_fields(actor1, @assoc_fields) == Ecto.reset_fields(actor2, @assoc_fields)
end
end