debian-mirror-gitlab/spec/lib/api/entities/ml/mlflow/run_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
451 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# 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