Skip to content

Commit

Permalink
Fixed the unit tests
Browse files Browse the repository at this point in the history
Mock SuSEFirewall module to avoid displaying a PolicyKit popup
  • Loading branch information
lslezak committed Dec 17, 2018
1 parent 4de519a commit 54f7bfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def stub_module(name)
# Stub classes from other modules to speed up a build
stub_module("AutoinstGeneral")
stub_module("AutoinstSoftware")
# the SuSEFirewall module checks the firewall status in the constructor,
# avoid displaying a PolicyKit popup asking for the root password...
stub_module("SuSEFirewall")

if ENV["COVERAGE"]
require "simplecov"
Expand Down

0 comments on commit 54f7bfe

Please sign in to comment.