Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Oct 30, 2023
1 parent d59d758 commit 7118d81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/lib/clients/inst_upgrade_urls_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
allow(Yast::UI).to receive(:QueryWidget)
allow(Yast::UI).to receive(:ChangeWidget)
allow(Yast::Pkg).to receive(:SourceSaveAll)
allow(Y2Packager::MediumType).to receive(:standard?).and_return(true)
allow(Yast::Pkg).to receive(:SourceLoad)
end

describe "#main" do
Expand Down
4 changes: 4 additions & 0 deletions test/lib/upgrade_repo_manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ def self.is_registered?
allow(repo1).to receive(:disable!)
allow(repo1).to receive(:delete!)
allow(Yast::Pkg).to receive(:ServiceDelete)
allow(Yast::Pkg).to receive(:SourceSaveAll)
allow(Yast::Pkg).to receive(:SourceFinishAll)
allow(Yast::Pkg).to receive(:SourceRestore)
allow(Yast::Pkg).to receive(:SourceLoad)
end

it "removes the selected repositories" do
Expand Down

0 comments on commit 7118d81

Please sign in to comment.