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

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

require 'spec_helper'

RSpec.describe GitlabSchema.types['MlModel'], feature_category: :mlops do
  specify { expect(described_class.description).to eq('Machine learning model in the model registry') }

  it 'includes all the package fields' do
    expected_fields = %w[id name versions candidates]

    expect(described_class).to include_graphql_fields(*expected_fields)
  end
end