2020-04-08 14:13:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :project_export_job do
|
|
|
|
project
|
|
|
|
jid { SecureRandom.hex(8) }
|
2023-03-04 22:38:38 +05:30
|
|
|
|
|
|
|
trait :queued do
|
|
|
|
status { ProjectExportJob::STATUS[:queued] }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :started do
|
|
|
|
status { ProjectExportJob::STATUS[:started] }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :finished do
|
|
|
|
status { ProjectExportJob::STATUS[:finished] }
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :failed do
|
|
|
|
status { ProjectExportJob::STATUS[:failed] }
|
|
|
|
end
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
end
|