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

run_spec.rb « mlflow « ml « entities « api « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84234f474f5e4edae477e6bc9c1bc030fcdcb0ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe API::Entities::Ml::Mlflow::Run do
  let_it_be(:candidate) { create(:ml_candidates) }

  subject { described_class.new(candidate).as_json }

  it 'has run key' do
    expect(subject).to have_key(:run)
  end

  it 'has the id' do
    expect(subject[:run][:info][:run_id]).to eq(candidate.iid.to_s)
  end

  it 'data is empty' do
    expect(subject[:run][:data]).to be_empty
  end
end