Try mocking whiptail

This commit is contained in:
Dan Schaper 2017-01-23 18:47:52 -08:00
parent 3aeb378b56
commit 968b981ecb
No known key found for this signature in database
GPG key ID: 572E999E385B7BFC

View file

@ -67,6 +67,7 @@ def test_setupVars_saved_to_file(Pihole):
def test_configureFirewall_firewalld_no_errors(Pihole):
''' confirms firewalld rules are applied when appropriate '''
mock_command('firewall-cmd', 'running', '0', Pihole)
mock_command('whiptail', '', '0', Pihole)
configureFirewall = Pihole.run('''
source /opt/pihole/basic-install.sh
configureFirewall