Skip to content

Commit

Permalink
fix requirements in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 3, 2024
1 parent de13a34 commit d37285c
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/registration/autoyast_addons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

require "yast"

require "registration/addon"

module Registration
# This class handles the AutoYaST addons
class AutoyastAddons
Expand Down Expand Up @@ -132,6 +134,8 @@ def collect_reg_codes
end

def registration_ui
require "registration/registration_ui"

@registration_ui ||= RegistrationUI.new(registration)
end
end
Expand Down
2 changes: 2 additions & 0 deletions test/abort_confirmation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "spec_helper"

require "registration/ui/abort_confirmation"

Yast.import "Popup"
Yast.import "Mode"

Expand Down
1 change: 1 addition & 0 deletions test/addon_selection_dialog_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require_relative "spec_helper"
require "registration/ui/addon_selection_registration_dialog"
require "registration/addon"

describe Registration::UI::AddonSelectionRegistrationDialog do
Expand Down
2 changes: 2 additions & 0 deletions test/autoyast_addons_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
require_relative "spec_helper"
require "yaml"

require "registration/autoyast_addons"

describe Registration::AutoyastAddons do
let(:registration) { double("registration") }
let(:unsorted_addons) do
Expand Down
4 changes: 4 additions & 0 deletions test/base_system_registration_dialog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

require_relative "spec_helper"

require "registration/ui/base_system_registration_dialog"

Yast.import "Packages"

describe Registration::UI::BaseSystemRegistrationDialog do
include Yast::UIShortcuts

Expand Down
2 changes: 2 additions & 0 deletions test/migration_finish_workflow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "spec_helper"

require "registration/ui/migration_finish_workflow"

describe Registration::UI::MigrationFinishWorkflow do
describe "#run_sequence" do
it "restores the repository setup and returns :next" do
Expand Down
3 changes: 3 additions & 0 deletions test/migration_repos_selection_dialog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

require_relative "spec_helper"

require "registration/ui/migration_repos_selection_dialog"
require "registration/migration_repositories"

include Yast::UIShortcuts

describe Registration::UI::MigrationReposSelectionDialog do
Expand Down
2 changes: 2 additions & 0 deletions test/migration_repos_workflow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "spec_helper"

require "registration/ui/migration_repos_workflow"

describe Registration::UI::MigrationReposWorkflow do
describe "#run_sequence" do
before do
Expand Down
2 changes: 2 additions & 0 deletions test/migration_repositories_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "spec_helper"

require "registration/migration_repositories"

describe Registration::MigrationRepositories do
describe ".reset" do
it "resets the selected packages" do
Expand Down
3 changes: 3 additions & 0 deletions test/migration_selection_dialog_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#! /usr/bin/env rspec

require_relative "spec_helper"

require "registration/ui/migration_selection_dialog"

include Yast::UIShortcuts

describe Registration::UI::MigrationSelectionDialog do
Expand Down
2 changes: 2 additions & 0 deletions test/offline_migration_workflow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "spec_helper"

require "registration/ui/offline_migration_workflow"

describe Registration::UI::OfflineMigrationWorkflow do
describe "#main" do
before do
Expand Down
1 change: 1 addition & 0 deletions test/registration/clients/scc_auto_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require_relative "../../spec_helper"
require "y2packager/control_product_spec"
require "registration/clients/scc_auto"

describe Registration::Clients::SCCAuto do
let(:config) { ::Registration::Storage::Config.instance }
Expand Down
2 changes: 2 additions & 0 deletions test/registration_sync_workflow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "spec_helper"

require "registration/ui/registration_sync_workflow"

describe Registration::UI::RegistrationSyncWorkflow do
describe "#run_sequence" do
let(:registration) { Registration::Registration.new }
Expand Down
2 changes: 2 additions & 0 deletions test/registration_update_dialog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative "spec_helper"

require "registration/ui/registration_update_dialog"

describe Registration::UI::RegistrationUpdateDialog do
subject { Registration::UI::RegistrationUpdateDialog }

Expand Down

0 comments on commit d37285c

Please sign in to comment.