Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorpvogt09 <50047961+pvogt09@users.noreply.github.com>2020-03-18 21:11:49 +0300
committerpvogt09 <50047961+pvogt09@users.noreply.github.com>2020-10-27 13:35:49 +0300
commitbef9cd3bc2575ca31911178eca5b494ed2cf670f (patch)
treecb51f4c27963351c4f2041a8ebddfc9b99a94a54 /test
parent60a4814ac156154c726574fd4dae1dd8d5a71821 (diff)
mock whiptail to add universe repo
Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_automated_install.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_automated_install.py b/test/test_automated_install.py
index 0810b63f..b830ddf4 100644
--- a/test/test_automated_install.py
+++ b/test/test_automated_install.py
@@ -601,8 +601,8 @@ def test_install_dependent_packages_no_errors(Pihole):
'''
confirms all dependent packages are installed on a fresh build
'''
- # mock whiptail answers and ensure installer dependencies
- mock_command('whiptail', {'*': ('', '0')}, Pihole)
+ # mock whiptail answers to use universe repo if asked
+ mock_command('whiptail', {'*': ('', '1')}, Pihole)
# create configuration file
setup_var_file = 'cat <<EOF> /etc/pihole/setupVars.conf\n'
for k, v in SETUPVARS.items():
@@ -625,10 +625,10 @@ def test_install_dependent_packages_no_errors(Pihole):
def test_install_dependent_packages_web_no_errors(Pihole):
'''
- confirms all dependent packages are installed on a fresh build
+ confirms all dependent web packages are installed on a fresh build
'''
- # mock whiptail answers and ensure installer dependencies
- mock_command('whiptail', {'*': ('', '0')}, Pihole)
+ # mock whiptail answers to use universe repo if asked
+ mock_command('whiptail', {'*': ('', '1')}, Pihole)
# mock systemctl to start lighttpd
mock_command_2(
'systemctl',