Welcome to mirror list, hosted at ThFree Co, Russian Federation.

models.rb « ml « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d1b29289a56cdac674846b79efc1812b0bf27c8 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

FactoryBot.define do
  factory :ml_models, class: '::Ml::Model' do
    sequence(:name) { |n| "model#{n}" }

    project
    default_experiment { association :ml_experiments, project_id: project.id, name: name }
  end
end