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
|