Introduce backend for reports
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -202,4 +202,24 @@ defmodule Mobilizon.Factory do
|
||||
actor: build(:actor)
|
||||
}
|
||||
end
|
||||
|
||||
def report_factory do
|
||||
%Mobilizon.Reports.Report{
|
||||
content: "This is problematic",
|
||||
status: :open,
|
||||
uri: "http://mobilizon.test/report/deae1020-54b8-47df-9eea-d8c0e943e57f/activity",
|
||||
reported: build(:actor),
|
||||
reporter: build(:actor),
|
||||
event: build(:event),
|
||||
comments: build_list(1, :comment)
|
||||
}
|
||||
end
|
||||
|
||||
def report_note_factory do
|
||||
%Mobilizon.Reports.Note{
|
||||
content: "My opinion",
|
||||
moderator: build(:actor),
|
||||
report: build(:report)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user