mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 14:34:44 +00:00
Try mocking whiptail
This commit is contained in:
parent
3aeb378b56
commit
968b981ecb
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ def test_setupVars_saved_to_file(Pihole):
|
||||||
def test_configureFirewall_firewalld_no_errors(Pihole):
|
def test_configureFirewall_firewalld_no_errors(Pihole):
|
||||||
''' confirms firewalld rules are applied when appropriate '''
|
''' confirms firewalld rules are applied when appropriate '''
|
||||||
mock_command('firewall-cmd', 'running', '0', Pihole)
|
mock_command('firewall-cmd', 'running', '0', Pihole)
|
||||||
|
mock_command('whiptail', '', '0', Pihole)
|
||||||
configureFirewall = Pihole.run('''
|
configureFirewall = Pihole.run('''
|
||||||
source /opt/pihole/basic-install.sh
|
source /opt/pihole/basic-install.sh
|
||||||
configureFirewall
|
configureFirewall
|
||||||
|
|
Loading…
Reference in a new issue