1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 16:33:28 +00:00
mobilizon/test/service/export/participants/csv_test.exs
Thomas Citharel 3d491fc034
test: correctly skip invalid tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-08-21 16:14:34 +02:00

23 lines
755 B
Elixir

defmodule Mobilizon.Service.Export.Participants.CSVTest do
use Mobilizon.DataCase
import Mobilizon.Factory
alias Mobilizon.Events.Event
alias Mobilizon.Service.Export.Participants.CSV
describe "export event participants to csv" do
@tag :skip
test "export basic infos" do
%Event{} = event = insert(:event)
insert(:participant, event: event, role: :creator)
insert(:participant, event: event, role: :participant)
insert(:participant, event: event, role: :not_approved)
assert CSV.ready?()
assert {:ok, path} = CSV.export(event)
assert content = File.read!("test/uploads/exports/csv/" <> path)
assert content =~ "Participant name,Participant status,Participant message"
end
end
end